Campbell Ritchie wrote:Welcome to the Ranch
Simple! numbers beginning with 0 are octal, so 021 equals 17.
But only in numerical literals. Integer.parseInt("011") will simply return 11, which is why you won't see "1" in the result. To parse that
String as octal one should use Integer.parseInt("011", 8).