Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. public boolean isClear(int index)
  2. {
  3. if(index < 32){
  4. if( (bits & 0x00000001<<index) == 0)
  5. return true;
  6. else
  7. return false;
  8. }
  9. else
  10. return true;
  11. }
  12.  
  13. public boolean isSet(int index)
  14. {
  15. if(index < 32){
  16. if( (bits & 0x00000001<<index) != 0)
  17. return true;
  18. else
  19. return false;
  20. }
  21. else
  22. return false;
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement