static int deQueue ( Queue q ) {
  if ( q . front == null ) {
    System . out . printf ( "Queue is empty" ) ;
    return Integer . MIN_VALUE ;
  }
  int value ;
  if ( q . front == q . rear ) {
    value = q . front . data ;
    q . front = null ;
    q . rear = null ;
  }
  else {
    Node temp = q . front ;
    value = temp . data ;
    q . front = q . front . link ;
    q . rear . link = q . front ;
  }
  return value ;
}

static int deQueue ( Queue q ) { if ( q . front == null ) { System . out . printf ( " Queue ▁ is ▁ empty " ) ; return Integer . MIN_VALUE ; } int value ; if ( q . front == q . rear ) { value = q . front . data ; q . front = null ; q . rear = null ; } else { Node temp = q . front ; value = temp . data ; q . front = q . front . link ; q . rear . link = q . front ; } return value ; }
(method_declaration (modifiers) type: (integral_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (type_identifier) name: (identifier))) body: (block (if_statement condition: (parenthesized_expression (binary_expression left: (field_access object: (identifier) field: (identifier)) right: (null_literal))) consequence: (block (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (string_literal)))) (return_statement (field_access object: (identifier) field: (identifier))))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (field_access object: (identifier) field: (identifier)) right: (field_access object: (identifier) field: (identifier)))) consequence: (block (expression_statement (assignment_expression left: (identifier) right: (field_access object: (field_access object: (identifier) field: (identifier)) field: (identifier)))) (expression_statement (assignment_expression left: (field_access object: (identifier) field: (identifier)) right: (null_literal))) (expression_statement (assignment_expression left: (field_access object: (identifier) field: (identifier)) right: (null_literal)))) alternative: (block (local_variable_declaration type: (type_identifier) declarator: (variable_declarator name: (identifier) value: (field_access object: (identifier) field: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (field_access object: (identifier) field: (identifier)))) (expression_statement (assignment_expression left: (field_access object: (identifier) field: (identifier)) right: (field_access object: (field_access object: (identifier) field: (identifier)) field: (identifier)))) (expression_statement (assignment_expression left: (field_access object: (field_access object: (identifier) field: (identifier)) field: (identifier)) right: (field_access object: (identifier) field: (identifier)))))) (return_statement (identifier))))