I know int is a data type used to declare variables, but it is in the decimal system. What if I want to specify that my integer is in binary?
Edit: I am sorry if this question is being confused with the one that it was marked with as a duplicate. To clarify:
There is a data type int in java that specifies integer literals. Integer literals come in various number systems, including decimal, hexadecimal, octal, binary. When we declare a variable to be an integer, we write: int var;
We can give var a binary integer value by doing an assignment like: var = 0b1101
However, I was asking is it possible to specify the integer to be in binary system (i.e. a more specific data type of integer) without later having to put 0b in front of the binary number we assign later to var?