class Demo
{
public static void main(String[] args){
Map<String,String> m = new TreeMap<String,String>();
m.put("Key", null);
m.put("AA", "1");
Set<String> s = m.keySet();
Iterator<String> it = s.iterator();
while (it.hasNext()){
System.out.println(it.next());
}
}
}