I have a
Map<Integer,List<SomeObject> map = new LinkedHashMap<Integer,List<SomeObject>>();
I was added elements in this order :
map.put(32,List Of SomeObjects);
map.put(2,List Of SomeObjects);
map.put(3,List Of SomeObjects);
after invoking this method via URL (Using restApi) I got map key in this order :
{2,List Of SomeObjects}
{3,List Of SomeObjects}
{32,List Of SomeObjects}
Can anyone tell me how to solve this problem ? Order of output is not order of input