import it.unimi.dsi.fastutil.ints.IntArrayList;
IntArrayList list = new IntArrayList();
list.add(10);
list.add(20);
for (int i = 0; i < list.size(); i++) {
System.out.println(list.getInt(i));
}
import it.unimi.dsi.fastutil.ints.IntHashSet;
IntHashSet set = new IntHashSet();
set.add(10);
set.add(20);
System.out.println(set.contains(10)); // true
for (int value : set) {
System.out.println(value);
}
import it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap;
Int2ObjectOpenHashMap<String> map = new Int2ObjectOpenHashMap<>();
map.put(10, "value1");
map.put(20, "value2");
System.out.println(map.get(10)); // value1
for (Int2ObjectMap.Entry<String> entry : map.int2ObjectEntrySet()) {
System.out.println(entry.getIntKey() + ": " + entry.getValue());
}