Here you can find the source of isBitSet(int number, int count)
public static boolean isBitSet(int number, int count)
//package com.java2s; //License from project: Open Source License public class Main { public static boolean isBitSet(int number, int count) { return (number & (0x01 << count)) > 0; }//from w ww .ja va 2 s. c o m }