static void enQueue ( Queue q , int value ) {
  Node temp = new Node ( ) ;
  temp . data = value ;
  if ( q . front == null ) q . front = temp ;
  else q . rear . link = temp ;
  q . rear = temp ;
  q . rear . link = q . front ;
}

static void enQueue ( Queue q , int value ) { Node temp = new Node ( ) ; temp . data = value ; if ( q . front == null ) q . front = temp ; else q . rear . link = temp ; q . rear = temp ; q . rear . link = q . front ; }
(method_declaration (modifiers) type: (void_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (type_identifier) name: (identifier)) (formal_parameter type: (integral_type) name: (identifier))) body: (block (local_variable_declaration type: (type_identifier) declarator: (variable_declarator name: (identifier) value: (object_creation_expression type: (type_identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (field_access object: (identifier) field: (identifier)) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (field_access object: (identifier) field: (identifier)) right: (null_literal))) consequence: (expression_statement (assignment_expression left: (field_access object: (identifier) field: (identifier)) right: (identifier))) alternative: (expression_statement (assignment_expression left: (field_access object: (field_access object: (identifier) field: (identifier)) field: (identifier)) right: (identifier)))) (expression_statement (assignment_expression left: (field_access object: (identifier) field: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (field_access object: (field_access object: (identifier) field: (identifier)) field: (identifier)) right: (field_access object: (identifier) field: (identifier))))))