Basically what I want to do is create a certain number of arraylists based on user input and compare them to see if they are the same. My idea for creating the arraylists would be to do something like:
int numArrays = sc.nextInt();
for(int i = 0; i < numArrays; i++) {
List<Integer> i = new ArrayList<Integer>();
}
But I know this doesn't work in Java. Is there any way for me to get the same or a similar result?
>` as suggested by @OliverCharlesworth.
– Hovercraft Full Of Eels Jan 05 '18 at 03:28