Here you can find the source of bitSet(int value, int bitmask)
public static boolean bitSet(int value, int bitmask)
//package com.java2s; //License from project: Open Source License public class Main { public static boolean bitSet(int value, int bitmask) { return (value & bitmask) > 0; }/*from w w w . ja v a 2 s.c o m*/ }