Map m=new HashMap(); Employee e=new Employee(1,"Rajesh"); Department d=new Department(10,1);//1 is employee id here m.put(e,d);
Map m = new HashMap<Employee, Department>();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)