Java Bit Unset unsetHighBit(int integer)

Here you can find the source of unsetHighBit(int integer)

Description

unset High Bit

License

Open Source License

Declaration

static public int unsetHighBit(int integer) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    static public int unsetHighBit(int integer) {
        return unSetBit(integer, 7);
    }/* w  w  w.j a  va 2s .c  o m*/

    static public int unSetBit(int integer, int bit) {
        return (integer & ~(1 << bit));
    }
}

Related

  1. unSetBit(int integer, int bit)
  2. unsetBit(int value, int flags)
  3. unsetBit(long flags, long bit)
  4. unsetFlag(final int data, final int flag)
  5. unsetFlag(int bitset, int flag)