日期:2014-05-20  浏览次数:20944 次

for(Enployee e:staff) 什么意思啊?
Employee[] staff=new Employee[3];
staff[0]=new Employee("Carry",6000,1992,15,21);
staff[1]=new Employee("Tom",60000,1993,15,21);
staff[2]=new Employee("Jack",60000,1994,15,21);
for(Employee e:staff)
e.raiseSalary();
大侠,rt!

------解决方案--------------------
集合遍历