Java Bit Set setBit(int bit)

Here you can find the source of setBit(int bit)

Description

set Bit

License

Apache License

Declaration

public static int setBit(int bit) 

Method Source Code

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

public class Main {
    public static int setBit(int bit) {
        return (1 << bit);
    }/*from  ww  w  .j a va 2s. c  o  m*/
}

Related

  1. setBit(final byte[] buf, final long bitIndex, final boolean value)
  2. setbit(final int num, final int bitnum, final boolean state)
  3. setBit(final int source, final int bit, final boolean value)
  4. setBit(final long word, final int idx, final boolean bit)
  5. setBit(int b0, boolean value, int original)
  6. setBit(int bitmask, int bit, boolean enabled)
  7. setBit(int bits, int index)
  8. setBit(int changeValue, int position, int value)
  9. setBit(int data, int bit, int value)