Код: Выделить всё
List cars = new ArrayList();
cars.add(List.of("1", "Silver", "3000"));
cars.add(List.of("2", "White", "4000"));
cars.add(List.of("3", "Black", "3000"));
cars.add(List.of("4", "White", "3000"));
cars.add(List.of("5", "Blue", "5000"));
cars.add(List.of("6", "Silver", "2000"));
ПРИМЕЧАНИЕ. Мне не нужны такие решения, как list.add(anotherList).< /strong>
Подробнее здесь: https://stackoverflow.com/questions/783 ... string-dir