public static boolean check ( String s1 , String [ ] a ) {
  for ( int k = 0 ;
  k < a . length ;
  k ++ ) {
    if ( s1 . equals ( a [ k ] ) ) return false ;
  }
  return true ;
}

public static boolean check ( String s1 , String [ ] a ) { for ( int k = 0 ; k < a . length ; k ++ ) { if ( s1 . equals ( a [ k ] ) ) return false ; } return true ; }
(method_declaration (modifiers) type: (boolean_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (type_identifier) name: (identifier)) (formal_parameter type: (array_type element: (type_identifier) dimensions: (dimensions)) name: (identifier))) body: (block (for_statement init: (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) condition: (binary_expression left: (identifier) right: (field_access object: (identifier) field: (identifier))) update: (update_expression (identifier)) body: (block (if_statement condition: (parenthesized_expression (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (array_access array: (identifier) index: (identifier))))) consequence: (return_statement (false))))) (return_statement (true))))