I want to add the an index of a 2 dimensional ArrayList to the same ArrayList. Code should be something like the following but index numbers and the same ArrayList must be involved:
ArrayList<String> a[0] = new ArrayList<>(Arrays.asList("A", "B", "C"));
ArrayList<String> a[1] = a[0];
Of course this code won't work. Thank you in advance...