ArrayList
package fifth;
import java.util.ArrayList;
public class ArrayListTest {
public static void main(String[] args) {
// TODO Auto-generated method stub
ArrayList<Employee> staff = new ArrayList();
staff.add(new Employee("Carl Cracker",75000,1987,12,15));
staff.add(new Employee("Harry Hacker",50000,1989,10,1));
staff.add(new Employee("Tony Tester",4000,1990,3,15));
for(Employee e:staff)
e.raiseSalary(5);
for(Employee e:staff)
System.out.println("name"+e.getName()+",salary"+e.getSalary()+",hireDay"+e.getHireDay());
}
}