Here you can find the source of intToBoolean(int[] values)
public static boolean[] intToBoolean(int[] values)
//package com.java2s; public class Main { public static boolean[] intToBoolean(int[] values) { if (values == null) { return null; }//from w w w . ja v a2 s .c o m boolean[] results = new boolean[values.length]; for (int i = 0; i < values.length; i++) { results[i] = (values[i] != 0); } return results; } }