Similar to how you can define an integer constant in hexadecimal or octal, can I do it in binary?
I admit this is a really easy (and stupid) question. My google sea
There are no binary literals in Java, but I suppose that you could do this (though I don't see the point):
int a = Integer.parseInt("10101010", 2);