这个程序有什么问题

Moh*_*sal 1 java while-loop

我有一个代码片段:

class WhileTest
{
    public static void main(String s[])
    {
        int x=12;
        while(x<13)
        {
            x--;
        }
        System.out.println(x);
    }
}
Run Code Online (Sandbox Code Playgroud)

上述程序的输出是: 2147483647

为什么这样?

关于ideone的代码

Rei*_*eus 10

x 递减,然后下降到达 Integer.MAX_VALUE