public static Comparable max(Comparable[] data) { Comparable max; if(data.length == 0){ return null; } max = data[0]; for (int i=1; i