overflow.java

来自「Mac OS X 10.4.9 for x86 Source Code gcc」· Java 代码 · 共 17 行

JAVA
17
字号
class Overflow{  static int test(int x)  {    return (2*x)/2;  }  public static void main(String argv[])  {    int x = Integer.MAX_VALUE;    if (test(x) == x)      throw new RuntimeException ();  }}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?