Here you can find the source of Ceil(Object in, int val)
public static final void Ceil(Object in, int val)
//package com.java2s; //License from project: Open Source License public class Main { public static final void Ceil(Object in, int val) { if (in == null) return; if (in instanceof int[]) { int[] inn = (int[]) in; for (int i = 0, s = inn.length; i < s; i++) if (inn[i] > val) inn[i] = val; } else {/* w w w .java2 s . co m*/ for (int i = 0, s = ((Object[]) in).length; i < s; i++) Ceil(((Object[]) in)[i], val); } } }