Search:

Type: Posts; User: bihlas

Search: Search took 0.11 seconds.

  1. Re: Why don't I get all the elements in my TreeSet?

    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...
  2. Why don't I get all the elements in my TreeSet?

    public void createPersons()
    {
    Random rand = new Random();
    for(int index = 0; index < persons.length; index++) {
    Person person = new Person(rand.nextInt(maxAge),...
Results 1 to 2 of 2