Monday, July 18, 2011

 

Binary Literals

Binary Literals - a new feature of Java 7.


So beside 0x... notation for hexadecimal you can now write 0b... for binary. What a step forward (for the Java community).

I still like Smalltalks base/radix notation since I can freely choose the base (binary, octal, decimal, ...)

2r10010010 
16rA000
...


Comments: Post a Comment

<< Home

This page is powered by Blogger. Isn't yours?