Lets say I have multiple ArrayLists
ArrayList<String> list01 = new ArrayList<String>(); ArrayList<String> list02 = new ArrayList<String>(); ArrayList<String> list03 = new ArrayList<String>(); ArrayList<String> list04 = new ArrayList<String>();
How would I be able to return a list that the user selects? I tried something like the following but it doesn't compile as I get an incompatible types error.
Scanner scanner = new Scanner(System.in); int one = scanner.nextInt(); int two = scanner.nextInt(); ArrayList test = "list" + one + two; System.out.println( test.size() );