public static void main(String[] args)
{
em e1=new em(1,"me",100);
em e2=new em(2,"she",1000);
em e3=new em(3,"he",10000);
Map map=new HashMap<>();
map.put(10, e1);
map.put(11, e2);
map.put(13, e3);
em e5=map.get(11);
}
}
em(int id,String name,double salary)
{
this.id=id;
this.name=name;
this.salary=salary;
}
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public double getSalary() {
return salary;
}
public void setSalary(double salary) {
this.salary = salary;
}
}
成都創(chuàng)新互聯(lián)公司主營(yíng)宕昌網(wǎng)站建設(shè)的網(wǎng)絡(luò)公司,主營(yíng)網(wǎng)站建設(shè)方案,app軟件開發(fā)公司,宕昌h5成都微信小程序搭建,宕昌網(wǎng)站營(yíng)銷推廣歡迎宕昌等地區(qū)企業(yè)咨詢