解决方法
看看
Java Language Specification,Chapter 3.10.1 Integer Literals
An integer literal may be expressed in decimal (base 10),hexadecimal
(base 16),octal (base 8),or binary (base 2).[…]
An octal numeral consists of an ASCII digit 0 followed by one or more
of the ASCII digits 0 through 7 interspersed with underscores,and can
represent a positive,zero,or negative integer.
现在你应该明白为什么010是8.
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。