/* package whatever; // don't place package name! */
import java.util.*;
import java.lang.*;
import java.io.*;
/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
{
// your code goes here
treeMap.add("Ten");
treeMap.add("Hundred");
treeMap.add("Thousand");
treeMap.add("Lakh");
treeMap.add("Crore");
while(iter.hasNext()){
System.
out.
print(iter.
next() + " "); }
}
}
LyogcGFja2FnZSB3aGF0ZXZlcjsgLy8gZG9uJ3QgcGxhY2UgcGFja2FnZSBuYW1lISAqLwoKaW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CgovKiBOYW1lIG9mIHRoZSBjbGFzcyBoYXMgdG8gYmUgIk1haW4iIG9ubHkgaWYgdGhlIGNsYXNzIGlzIHB1YmxpYy4gKi8KY2xhc3MgSWRlb25lCnsKCXB1YmxpYyBzdGF0aWMgdm9pZCBtYWluIChTdHJpbmdbXSBhcmdzKSB0aHJvd3MgamF2YS5sYW5nLkV4Y2VwdGlvbgoJewoJCS8vIHlvdXIgY29kZSBnb2VzIGhlcmUKCQlUcmVlU2V0IHRyZWVNYXAgPSBuZXcgVHJlZVNldCgpOwp0cmVlTWFwLmFkZCgiVGVuIik7CQkKdHJlZU1hcC5hZGQoIkh1bmRyZWQiKTsKdHJlZU1hcC5hZGQoIlRob3VzYW5kIik7CnRyZWVNYXAuYWRkKCJMYWtoIik7CnRyZWVNYXAuYWRkKCJDcm9yZSIpOwoKSXRlcmF0b3IgaXRlciA9IHRyZWVNYXAuaXRlcmF0b3IoKTsKd2hpbGUoaXRlci5oYXNOZXh0KCkpewpTeXN0ZW0ub3V0LnByaW50KGl0ZXIubmV4dCgpICsgIiAiKTsKfQoKCX0KfQ==
aGVlU2V0IHRyZWVNYXAgbmV3IFRyZWVTZXQoIFRyZWVNYXAuYWRkKCZxdW90O0h1bmRyZWQgdHJlZU1hcCBhZGQgJnF1b3Q7TGFraCB0cmVlTWFwLmFkZENyb3JlIGJlZU1hcC5hZGQoJnF1b3Q7VGhvdXNhbmQmcXVvdDspIEl0ZXJhdG9yIGl0ZXIgdHJlZU1hcC5pdGVyYXRvcigpOiB3aGlsZShpdGVyLmhhc05leHRPWCBTeXN0ZW0ub3V0LnByaW50KGl0ZXIubmV4dCgpKyZxdW90OyZxdW90Oyk7Cgo=
heeSet treeMap new TreeSet( TreeMap.add("Hundred treeMap add "Lakh treeMap.addCrore beeMap.add("Thousand") Iterator iter treeMap.iterator(): while(iter.hasNextOX System.out.print(iter.next()+"");