• 为什么运行不是123456789....?
  • 其它
    1.00元

死循环 y++ 为什么会出现很奇怪的数字???

public class A {
   public static void main(String[] args) {
       int x = 0;
       int y = 0;

       while (x < 10) {
           //x++;
           y++;
           System.out.println("y=" + y);
       }
   }
}


  • Willson1991    2019-12-30 11:28:31
  • 阅读 634    收藏 0    回答 1
  • 邀请
  • 收藏
  • 分享
发送
登录 后发表评论
  • 51testing软件测试圈微信