KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
If I have a byte, how would the method look to retrieve a bit at a certain position? Here is what I have know, and I don't think it works. public byte getBit(int position) { return (byte) (ID >> (position - 1)); } where ID is the name of the byte I am retrieving information from.
Tags (comma-separated)
Save Edits
Cancel