// Collection of code snippets by Arne Vajhøj 
// (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
import java.util.ArrayList;
import java.util.List;

public class GenFun {
    public static <T> boolean firstBiggerThanLast(List<? extends Comparable<T>> data) {
        return data.get(0).compareTo((T)data.get(data.size()-1)) > 0;
    }
    public static void main(String[] args) {
        List<Integer> lst = new ArrayList<Integer>();
        lst.add(1);
        lst.add(2);
        System.out.println(firstBiggerThanLast(lst));
    }
}
