Java Array Invert invert(int[] bits)

Here you can find the source of invert(int[] bits)

Description

invert

License

Apache License

Declaration

private static int[] invert(int[] bits) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {
    private static int[] invert(int[] bits) {
        for (int i = 0; i < bits.length; i++) {
            bits[i] = ~bits[i];//from  w  w  w .j  av a 2s .  co m
        }
        return bits;
    }
}

Related

  1. invert(byte[] key)
  2. invert(byte[] v)
  3. invert(double[] ary)
  4. invert(float[] a)
  5. invert(float[] m, float[] invOut)
  6. invert(int[] v)
  7. invert(int[][] clustered)
  8. invert(Object[] array)
  9. invert(Object[] objArray)