[关闭]
@gone 2014-09-30T03:23:03.000000Z 字数 138 阅读 581

Chapter 11 Bit Manipulation

Chapter11


How to determine whether a byte contains at most one 1

  1. public boolean check(byte num) {
  2. return num & (num-1)==0?true:false;
  3. }
添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注