Search:

Type: Posts; User: GregBrannon

Search: Search took 0.40 seconds.

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

    Good catch, Cornix. I didn't look past the for() loop.
  2. Re: Why don't I get all the elements in my TreeSet?

    Typically, a while() loop is used with an iterator:

    Iterator<Person> r = setOfPersons.iterator();
    while ( r.hasNext() ) { // code here }

    Why the for() loop?
Results 1 to 2 of 2