I am having a problem with the following lines where car is a String array which has not been initialized/has no elements.
car
String
String c
String car [];
is a reference to an array of String-s. You can't see a length because there is no array there!