public static boolean bad ( char [ ] a , char [ ] b ) {
  HashSet < Character > set = new HashSet < Character > ( ) ;
  for ( char c : b ) set . add ( c ) ;
  for ( char c : a ) if ( ! set . contains ( c ) ) return true ;
  return false ;
}

public static boolean bad ( char [ ] a , char [ ] b ) { HashSet < Character > set = new HashSet < Character > ( ) ; for ( char c : b ) set . add ( c ) ; for ( char c : a ) if ( ! set . contains ( c ) ) return true ; return false ; }
(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: (array_type element: (integral_type) dimensions: (dimensions)) name: (identifier))) body: (block (local_variable_declaration type: (generic_type (type_identifier) (type_arguments (type_identifier))) declarator: (variable_declarator name: (identifier) value: (object_creation_expression type: (generic_type (type_identifier) (type_arguments (type_identifier))) arguments: (argument_list)))) (enhanced_for_statement type: (integral_type) name: (identifier) value: (identifier) body: (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier))))) (enhanced_for_statement type: (integral_type) name: (identifier) value: (identifier) body: (if_statement condition: (parenthesized_expression (unary_expression operand: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier))))) consequence: (return_statement (true)))) (return_statement (false))))