ArrayList 操作
2023-05-20 16:38:42 最后更新
// 获取 ArrayList 类
cls("java.util.ArrayList", ArrayList)
// 实例化对象
javanew(list, ArrayList)
// 插入值
javax(null, list, ArrayList, "add", "Object", "字符串")
javax(null, list, ArrayList, "add", "Object", 123)
javax(null, list, ArrayList, "add", "Object", true)
// 获取数组长度
javax(size, list, ArrayList, "size")
// 打印数组
syso(list)