Wednesday, June 25, 2014

ArrayList and object question
































































































































































































































































































































































































































































































































So i have a problem i want to make a menu that allows you to press 1 and then make lets say a Car,
































































































































































































































































































































































































































































































































the code would look like
































































































































































































































































































































































































































































































































Car car = new Car();
































































































































































































































































































































































































































































































































and then add to my list
































































































































































































































































































































































































































































































































cars.add(car);
































































































































































































































































































































































































































































































































if in my menu the person presses 1 again, will they add another car or will it override it
































































































































































































































































































































































































































































































































also: how can i make a menu that doesnt allow you to press option 5(something that requieres you something that should be registered in other options ), untill you registered them?































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































No comments:

Post a Comment