Help with binary numbers
I get a compiler error on the following expression. The Java tutorials shows the expression as valid in the Primitive Data Types section:
int x = 0b11010; // binary notation
The compiler gives me the following error message:
TestMain.java:7: ';' expected
int x = 0b11010;
Is the notation not allowed?