Here you can find the source of BIT(int x)
public static int BIT(int x)
//package com.java2s; //License from project: Apache License public class Main { public static int BIT(int x) { return (1 << x); }/*from ww w. j a v a 2 s.c om*/ }