look at this statement in your code in VehiclDriver program:

File infile = new File("vehicles.txt");
Scanner scan = new Scanner(infile);
String x = "";
char c = x.charAt(0);

you are trying...