public boolean containsName(String type,String name){
  List<String> names=getNames(type);
  return names.contains(name);
}

public boolean containsName ( String type , String name ) { List < String > names = getNames ( type ) ; return names . contains ( name ) ; }
determines if a car type can have a specific load name .
