SCJP 6
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." --- Martin Fowler
Please correct my English.
Wouter Oet wrote:I'm pretty sure that this is a lot faster:
SCJP 6
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
William Brogden wrote:Or you could look at the bits the old fashioned way using Java's bitwise operators.
Henry Wong wrote:
William Brogden wrote:Or you could look at the bits the old fashioned way using Java's bitwise operators.
Agreed++. Why bother converting to a bit set, when it is just as easy to check a bit, set a bit, and clear a bit with the bitwise operators. Heck, with the bitwise operators, you can check, set, or clear multiple bits simultaneously.
Henry
Stephen Longville wrote:the reason i am using an array instead of a byte is beacuse i am then using System.arraycopy() to copy each byte into a larger byte array for writing
(its part of a WAVE file steganography project)
does it work just the same as if it were a non array single byte? (im assuming it would because its still a byte)
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
| Don't get me started about those stupid light bulbs. |