i make a linkedhashmap like this in java using netbean
LinkedHashMap map = new LinkedHashMap();
map.put(0, "one");
map.put(1, "two");
map.put(2, "three");
in the above code the key(0,1,2), i want that it auto generate. I try different online solution but doesn't work.