Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果我想设置变量的最大值及其来自 (double) 我们说:double.MAX_VALUE; 但是我怎么能用来自( int )的变量来做到这一点我希望你明白我的意思;
您要查找的属性是Integer.MAX_VALUE,它包含 java 可以拥有的最大值int,即 2 31 - 1。
Integer.MAX_VALUE
int