Here you can find the source of bitAt(int offset, byte aByte)
public static boolean bitAt(int offset, byte aByte)
//package com.java2s; //License from project: Apache License public class Main { public static boolean bitAt(int offset, byte aByte) { return (aByte & (1 << offset)) != 0; }//from w ww . j av a 2 s . c om }