Thank you Cornix.... Greg I used the for loop because I saw it in an example in my book and I just liked the fact you can declare the Iterator inside the condition...I have seen that is more common...
Type: Posts; User: bihlas
Thank you Cornix.... Greg I used the for loop because I saw it in an example in my book and I just liked the fact you can declare the Iterator inside the condition...I have seen that is more common...
public void createPersons()
{
Random rand = new Random();
for(int index = 0; index < persons.length; index++) {
Person person = new Person(rand.nextInt(maxAge),...