Here you can find the source of negate(boolean[] posit)
public static boolean[] negate(boolean[] posit)
//package com.java2s; //License from project: LGPL public class Main { public static boolean[] negate(boolean[] posit) { boolean[] neg = new boolean[posit.length]; for (int i = 0; i < posit.length; i++) { neg[i] = !posit[i];// ww w.j av a 2 s .c om } return neg; } }