Java Bit Clean clearBit(long n, int i)

Here you can find the source of clearBit(long n, int i)

Description

clear Bit

License

Apache License

Declaration

public static long clearBit(long n, int i) 

Method Source Code

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

public class Main {
    public static long clearBit(long n, int i) {
        return n & ~(1L << i);
    }/*from   w  ww.ja va 2s  . c  o m*/
}

Related

  1. clearBit(int n, int bitPosition)
  2. clearBit(int value, int bit)
  3. clearBit(int value, int bit)
  4. clearBit(int value, int bitIndex)
  5. clearBit(int value, int index)
  6. clearBit33ofDTS(byte[] array, int offset)
  7. clearBits(int value, int bits)
  8. clearBits(long value, long bits)
  9. clearBitsAfterInLastWord(int lastWord, int lastSetBit)