Hi,
Look at your mistake Abhradeep....
Car is your class and myCar is your object to access it,
Now, you are making an array of objects which is a false approach.
Write this code and get required output...
{
Car myCar = new Car();
String carList[];
carList = new String[9];
carList[0] = myCar.setMake("Toyota","Altis", "SJC2456 X", "100", "60");
and so on upto carList[8];
}
[Removed. Please
UseTheForumNotEmail]