public static boolean IsSorted ( int [ ] a , int n ) {
  if ( n == 0 || n == 1 ) return true ;
  else if ( a [ n - 1 ] < a [ n - 2 ] ) return false ;
  else return IsSorted ( a , n - 1 ) ;
}

public static boolean IsSorted ( int [ ] a , int n ) { if ( n == 0 || n == 1 ) return true ; else if ( a [ n - 1 ] < a [ n - 2 ] ) return false ; else return IsSorted ( a , n - 1 ) ; }
(method_declaration (modifiers) type: (boolean_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (array_type element: (integral_type) dimensions: (dimensions)) name: (identifier)) (formal_parameter type: (integral_type) name: (identifier))) body: (block (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (decimal_integer_literal)) right: (binary_expression left: (identifier) right: (decimal_integer_literal)))) consequence: (return_statement (true)) alternative: (if_statement condition: (parenthesized_expression (binary_expression left: (array_access array: (identifier) index: (binary_expression left: (identifier) right: (decimal_integer_literal))) right: (array_access array: (identifier) index: (binary_expression left: (identifier) right: (decimal_integer_literal))))) consequence: (return_statement (false)) alternative: (return_statement (method_invocation name: (identifier) arguments: (argument_list (identifier) (binary_expression left: (identifier) right: (decimal_integer_literal)))))))))