public static void main ( String args [ ] ) {
  Queue q = new Queue ( ) ;
  q . front = q . rear = null ;
  enQueue ( q , 14 ) ;
  enQueue ( q , 22 ) ;
  enQueue ( q , 6 ) ;
  displayQueue ( q ) ;
  System . out . printf ( "\nDeleted value = %d" , deQueue ( q ) ) ;
  System . out . printf ( "\nDeleted value = %d" , deQueue ( q ) ) ;
  displayQueue ( q ) ;
  enQueue ( q , 9 ) ;
  enQueue ( q , 20 ) ;
  displayQueue ( q ) ;
}

public static void main ( String args [ ] ) { Queue q = new Queue ( ) ; q . front = q . rear = null ; enQueue ( q , 14 ) ; enQueue ( q , 22 ) ; enQueue ( q , 6 ) ; displayQueue ( q ) ; System . out . printf ( " \n Deleted ▁ value ▁ = ▁ % d " , deQueue ( q ) ) ; System . out . printf ( " \n Deleted ▁ value ▁ = ▁ % d " , deQueue ( q ) ) ; displayQueue ( q ) ; enQueue ( q , 9 ) ; enQueue ( q , 20 ) ; displayQueue ( q ) ; }
(method_declaration (modifiers) type: (void_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (type_identifier) name: (identifier) dimensions: (dimensions))) 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: (assignment_expression left: (field_access object: (identifier) field: (identifier)) right: (null_literal)))) (expression_statement (method_invocation name: (identifier) arguments: (argument_list (identifier) (decimal_integer_literal)))) (expression_statement (method_invocation name: (identifier) arguments: (argument_list (identifier) (decimal_integer_literal)))) (expression_statement (method_invocation name: (identifier) arguments: (argument_list (identifier) (decimal_integer_literal)))) (expression_statement (method_invocation name: (identifier) arguments: (argument_list (identifier)))) (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (string_literal) (method_invocation name: (identifier) arguments: (argument_list (identifier)))))) (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (string_literal) (method_invocation name: (identifier) arguments: (argument_list (identifier)))))) (expression_statement (method_invocation name: (identifier) arguments: (argument_list (identifier)))) (expression_statement (method_invocation name: (identifier) arguments: (argument_list (identifier) (decimal_integer_literal)))) (expression_statement (method_invocation name: (identifier) arguments: (argument_list (identifier) (decimal_integer_literal)))) (expression_statement (method_invocation name: (identifier) arguments: (argument_list (identifier))))))