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...
Type: Posts; User: bihlas
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...
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...