public class test03 {
public static void main(String[] args) {
ArrayList<Object> list = new ArrayList<>();
list.add("one");
list.add("two");
list.add("three");
list.add("four");
System.out.println(list.get(1));
list.set(2,3);
System.out.println(list);
list.add(1,2);
list.remove(2);
System.out.println(list);
}
}
02-01
393
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
11-21
270
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
07-23
219
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)