Java tutorial
//package com.java2s; public class Main { @SuppressWarnings({ "rawtypes", "unchecked" }) public static boolean lessThan(Comparable a, Comparable b) { return a.compareTo(b) < 0; } }