So I have this ArrayList full of Strings
ArrayList<String> colours = new ArrayList<>();
colours.add("Red");
colours.add("Blue");
And that ArrayList is stored in another ArrayList
ArrayList<ArrayList> container = new ArrayList<>();
container.add(colors);
And that ArrayList is stored in a HashMap
HashMap<Integer, ArrayList> map = new HashMap<>();
map.put(1, container);
How do I access "red"? I tried
System.out.println(map.get(1).get(0).get(0));
But it gave a
Error: java: cannot find symbol
symbol: method get(int)
location: class java.lang.Object