import org.apache.hftcollections.lists.HFTIntArrayList; public class HFTCollectionsExample { public static void main(String[] args) { HFTIntArrayList list = new HFTIntArrayList(); list.add(10); list.add(20); list.add(30); int element = list.get(1); System.out.println("Element at index 1: " + element); list.remove(0); for (int i = 0; i < list.size(); i++) { System.out.println("Element at index " + i + ": " + list.get(i)); } } }


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