private static void g(HashMap hashMap) {
// TODO Auto-generated method stub
HashMap<Character , Sd> hxm = new HashMap<>();
hxm.put('c', new Sd("nsd",13));
hxm.put('a', new Sd("dfa",55));
Set<Character> set =hxm.keySet();
Iterator<Character> it = set.iterator();
while(it.hasNext())
{
Character a = it.next();
System.out.println(hxm.get(a).getName()+hxm.get(a).getAge());
}
}
private static void g(Sd student) {
// TODO Auto-generated method stub
TreeSet<Sd> ts =new TreeSet<>(new Comparator<Sd>()
{
public int compare(Sd s1, Sd s2)
{
return s1.getName().compareTo(s2.getName());
}
});