1public class GuiTest {
2
3
4 public static void main(String[] args) {
5 List<List<Integer>> MainList = new ArrayList<List<Integer>>();
6 Random NewRandomNumber = new Random();
7
8 for (int i = 0; i < 10; i++) {
9 List<Integer> SecondList = new ArrayList<Integer>();
10 MainList.add(SecondList);
11 for (int i2 = 0; i2 < 10; i2++) {
12 SecondList.add(NewRandomNumber.nextInt(6));
13 }
14 }
1import java.util.*;
2var list = new ArrayList<String>();
3list.add("Hello World!");
1ArrayList<ArrayList<String>> listOLists = new ArrayList<ArrayList<String>>();
2ArrayList<String> singleList = new ArrayList<String>();
3singleList.add("hello");
4singleList.add("world");
5listOLists.add(singleList);
6
7ArrayList<String> anotherList = new ArrayList<String>();
8anotherList.add("this is another list");
9listOLists.add(anotherList);
10