#EANF#
Something very wiered.
This is my code:
Map<String, Object[]> data = new HashMap<String, Object[]>();
data.put("1", new Object[] {"VENDOR_NAME", "COUNTRY_CODE", "PREFIX" ,
"RATE" , "CURRENCY" });
data.put("2", new Object[] {10d, "John", 1500000d});
data.put("3", new Object[] {2d, "Sam", 800000d});
data.put("4", new Object[] {3d, "Dean", 700000d});
Set<String> keyset = data.keySet();
int rownum = 0;
for (String key : keyset) {
System.out.println(key);
}
The result: 3 , 2 ,1 ,4
Why is the order all mixed :S ?
No comments:
Post a Comment