Here you can find the source of Min(Object in)
public static final int Min(Object in)
//package com.java2s; //License from project: Open Source License public class Main { public static final int Min(Object in) { int out = Integer.MAX_VALUE; if (in == null) return 0; if (in instanceof int[]) { int[] inn = (int[]) in; for (int i = 0, s = inn.length; i < s; i++) out = Min(out, inn[i]);//ww w . ja va 2 s . c o m return out; } else { for (int i = 0, s = ((Object[]) in).length; i < s; i++) out = Min(out, Min(((Object[]) in)[i])); return out; } } public static final int Min(int x1, int x2) { return (x1 < x2 ? x1 : x2); } }