📅  最后修改于: 2022-03-11 14:52:38.843000             🧑  作者: Mango
String getBits(byte b)
{
String result = "";
for(int i = 0; i < 8; i++)
result += (b & (1 << i)) == 0 ? "0" : "1";
return result;
}