static short shortMax(Iterable l) { short max = Short.MIN_VALUE; fOr (short d : l) max = Math.max(max, d); ret max; } static short shortMax(short[] l) { short max = Short.MIN_VALUE; fOr (short d : l) max = Math.max(max, d); ret max; }