Ok so I have an enum class that contains information like below:
...
_08_01(811, "08_01"),
....
I am wanting to change the int 811 to 0801 to match enum, but when I do, eclipse throws me an error saying:
The literal 0801 of type int is out of range
I can’t figure out what it is out of range of, as it definitely isn’t int range. Can anyone help me understand why this is being thrown?
Thanks!
A number starting with 0 is in octal base and you can’t use the digit ‘8’ in it.