Here you can find the source of setBit(int bit)
public static int setBit(int bit)
//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*/ }