Although Sun has released Java SDK 6.0 but I still discover many features I don’t know. Glen Pepicelli wrote a post “Bitwise Optimization in Java: Bitfields, Bitboards, and Beyond” described the basic of bits. I am not often to deal with bits deep but sometimes I have to recall my bit manipulation on java I/O and networking. You can find my previous post “Unsigned bytes in java”. Another area probably needs for is game programming, i.e. book: Developing Games in Java.

Ref:

Signed number representations

Bytecode Outline plugin for Eclipse

Hacker’s Delight

OTAKU CEDRIC: Fun with bits

The Java Language Specification, Third Edition

Code examples for Integer.bitCount() ; highestOneBit() ; reverseBytes()

Advertisements