public static boolean containsAll(String line,String... elements){
  for (  String element : elements)   if (!line.contains(element))   return false;
  return true;
}

public static boolean containsAll ( String line , String ... elements ) { for ( String element : elements ) if ( ! line . contains ( element ) ) return false ; return true ; }
this method verifies that the line contains all elements .
