public static void main ( String args [ ] ) {
  q . add ( 5 ) ;
  q . add ( 1 ) ;
  q . add ( 2 ) ;
  q . add ( 3 ) ;
  q . add ( 4 ) ;
  int n = q . size ( ) ;
  if ( checkSorted ( n ) ) System . out . print ( "Yes" ) ;
  else System . out . print ( "No" ) ;
}

public static void main ( String args [ ] ) { q . add ( 5 ) ; q . add ( 1 ) ; q . add ( 2 ) ; q . add ( 3 ) ; q . add ( 4 ) ; int n = q . size ( ) ; if ( checkSorted ( n ) ) System . out . print ( " Yes " ) ; else System . out . print ( " No " ) ; }
(method_declaration (modifiers) type: (void_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (type_identifier) name: (identifier) dimensions: (dimensions))) body: (block (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (decimal_integer_literal)))) (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (decimal_integer_literal)))) (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (decimal_integer_literal)))) (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (decimal_integer_literal)))) (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (decimal_integer_literal)))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) (if_statement condition: (parenthesized_expression (method_invocation name: (identifier) arguments: (argument_list (identifier)))) consequence: (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (string_literal)))) alternative: (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (string_literal)))))))