What my program is about that from the menu user will choose the brand, for example "Apple". It will show all the Apple brand computer with technical detail. Then i will ask to narrow down the...
Type: Posts; User: techflyer
What my program is about that from the menu user will choose the brand, for example "Apple". It will show all the Apple brand computer with technical detail. Then i will ask to narrow down the...
thanks. I have edited the above post and removed the if condition. My only question is that why the 'userList' arrayList showing only the last object of cList. Also, showing the size of userList=3...
Thanks for you help. Here is the Java code:
public class Computer {
public static String brand;
public static String memory;
public static ArrayList<String> userChoiceList =...
I am adding an arraylist "cList" in another arrayList "userList" but "userList" only show's last element i.e. Dell and 8GB. Also it's showing the size of the userList=3 but it should be 2.
Here is...