import org.eclipse.collections.api.list.primitive.MutableIntList; import org.eclipse.collections.impl.list.mutable.primitive.IntArrayList; public class Test { public static void main(String[] args) { MutableIntList list = new IntArrayList(); list.add(1); list.add(2); list.add(3); for (int i : list) { System.out.println(i); } } } <dependency> <groupId>org.eclipse.collections</groupId> <artifactId>org.eclipse.collections.api</artifactId> <version>10.3.0</version> </dependency> groovy implementation 'org.eclipse.collections:org.eclipse.collections.api:10.3.0'


上一篇:
下一篇:
切换中文