private static boolean isPandigital ( String s ) {
  if ( s . length ( ) != 9 ) return false ;
  char [ ] temp = s . toCharArray ( ) ;
  Arrays . sort ( temp ) ;
  return new String ( temp ) . equals ( "123456789" ) ;
}

private static boolean isPandigital ( String s ) { if ( s . length ( ) != 9 ) return false ; char [ ] temp = s . toCharArray ( ) ; Arrays . sort ( temp ) ; return new String ( temp ) . equals ( "123456789" ) ; }
(method_declaration (modifiers) type: (boolean_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (type_identifier) name: (identifier))) body: (block (if_statement condition: (parenthesized_expression (binary_expression left: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)) right: (decimal_integer_literal))) consequence: (return_statement (false))) (local_variable_declaration type: (array_type element: (integral_type) dimensions: (dimensions)) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier)))) (return_statement (method_invocation object: (object_creation_expression type: (type_identifier) arguments: (argument_list (identifier))) name: (identifier) arguments: (argument_list (string_literal))))))