1 2 3 4 5 6 7 8
public class TestCars { public static void main(String[] args) { AutomobileSalon salon = new AutomobileSalon(); Scanner scan = new Scanner(System.in); int id = Scanner.nextInt(); salon.printCars(findCarsById(id)); } }