Hello gurus,
Could you guys help me on translating regular array to using ArrayList?
Let's say I have an array of Employee. Employee has a method called setWhatEver().
Using regular array:
Employee emp = new Employee[5];
for (int i=0; i <5; i++){
emp[i] = new Employee();
emp[i].setWhatEver(); //// How do I do this using ArrayList?
}
So far I can only do:
ArrayList<Employee> emp = ArrayList<Employee>(5);
How can I use the method setWhatEver() using ArrayList in a for-loop similar to above?
Thanks!

