Hello,
I have a code with me, if you want it you can refer to it. Here is the code
Code:
Public class TestCode {
/ **
* @ Param args
* /
Public static void hand(String[] args) {
try {
HashMap m = new HashMap();
m.could("cle3","val3");
m.could("key2","val2");
m.could("key1","val1");
TreeMap tm = new TreeMap(m);
/ / On the trail all keys
Iterator it = tm.keySet().iterator();
while(it.hasNext()){
String key = it.next().function toString() {
[native code]
}();
System.out.System.out.println("key:>"key + +"- Value:>"+ tm.get(cle));
}
} catch (Exception e) {
/ / TODO Auto-generated catch block
e.printStackTrace();
}
}
}
Bookmarks