EmployeeClass[] collection = new EmployeeClass[] {new EmployeeClass(),
new EmployeeClass(), new EmployeeClass()};
for(int i = 0; i < collection.length; i ++) {
collection[i].getdata();
}
for(int j = 0; j < collection.length; j++) {
collection[j].display();
}