Android Int Bit Set toggleBit(int number, int count)

Here you can find the source of toggleBit(int number, int count)

Description

toggle Bit

License

Open Source License

Declaration

public static int toggleBit(int number, int count) 

Method Source Code

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

public class Main {
    public static int toggleBit(int number, int count) {
        return number | 0x01 << count;
    }//  w ww .  j  ava2s.c o  m
}

Related

  1. isPowerOfTwo(int v)
  2. clearBit(int number, int count)
  3. contains(int bit, int... options)
  4. decode(int bits)
  5. nextHighestPowerOfTwo(int v)