Hai,
I m using ArrayList in my java like
List<Car> cars = new ArrayList<Car>( );
Car s an separate class which has the car names. I have to add the data in to the List like the above.But its showing error. how to use these kinds of Collection using Generics
I m using ArrayList in my java like
List<Car> cars = new ArrayList<Car>( );
Car s an separate class which has the car names. I have to add the data in to the List like the above.But its showing error. how to use these kinds of Collection using Generics
Comment