Here you can find the source of Max(Object in)
public static final char Max(Object in)
//package com.java2s; //License from project: Open Source License public class Main { public static final char Max(Object in) { char out = 0; if (in == null) return 0; if (in instanceof char[]) { char[] inn = (char[]) in; for (int i = 0, s = inn.length; i < s; i++) out = Max(out, inn[i]);/* w w w . j a va2 s .c om*/ return out; } else { for (int i = 0, s = ((Object[]) in).length; i < s; i++) out = Max(out, Max(((Object[]) in)[i])); return out; } } public static final char Max(char x1, char x2) { return (x1 > x2 ? x1 : x2); } public static final char Max(char x1, char x2, char x3) { return Max(x1, Max(x2, x3)); } public static final char Max(char x1, char x2, char x3, char x4) { return Max(Max(x1, x2), Max(x3, x4)); } }