Here you can find the source of Floor(Object in, int val)
public static final void Floor(Object in, int val)
//package com.java2s; //License from project: Open Source License public class Main { public static final void Floor(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 {/*from w w w . j ava2 s . c o m*/ for (int i = 0, s = ((Object[]) in).length; i < s; i++) Floor(((Object[]) in)[i], val); } } }