Java Integer to Boolean intToBoolean(int[] values)

Here you can find the source of intToBoolean(int[] values)

Description

int To Boolean

License

Open Source License

Declaration

public static boolean[] intToBoolean(int[] values) 

Method Source Code

//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;
    }
}

Related

  1. IntToBool(int Expression)
  2. intToBool(int i)
  3. intToBool(int int_in, int length)
  4. intToBoolAra(int num, int len)
  5. intToBoolean(int x)
  6. intToBoolean(Integer value)
  7. intToBooleanArray(int in)