📅  最后修改于: 2022-03-11 14:52:08.788000             🧑  作者: Mango
ArrayList stringArray = new ArrayList();
stringArray.add("First Element");
stringArray.add("Third Element");
stringArray.add(1, "Second Element");
System.out.println(stringArray);
// ["First Element", "Second Element", "Third Element"]