Day 16 – Collections – Sorting, Comparing basics (Ratna patel)

Comparable Interface Example…

public class Person implements Comparable {

private int person_id;

private String name;


* Compare current person with specified person

* return zero if person_id for both person (more…)

This content is restricted to site members. If you are an existing user, please log in. New users may register here.

Existing Users Log In
 Remember Me