Search:

Type: Posts; User: bihlas

Search: Search took 0.21 seconds.

  1. [SOLVED] Re: How do I sort a TreeSet by Person's age?

    I am confused now...I do implement the comparable interface dont I? I implement the compareTo method in Person Class ... The API documentation for the Comparable interface mentions only compareTo(T...
  2. [SOLVED] How do I sort a TreeSet by Person's age?

    public class Person implements Comparable<Person>
    {
    // the age of the person
    private int age;
    //the name of the person
    private String name;
    //the Integer object to wrap the...
Results 1 to 2 of 2