JAVA bugFree!

JAVA

 

* while(count==0) {}  // 不能写成while(count)  java不会自己变类型

 

* int i; 

 long sqr = (long)i*i; // 要手动做类型转换 

 

*   If you use the nextLine() method immediately following the nextInt()method, recall that nextInt() reads integer tokens; because of this, the last newline character for that line of integer input is still queued in the input buffer and the next nextLine() will be reading the remainder of the integer line (which is empty).

posted @ 2016-01-30 10:34  飞飞喵  阅读(257)  评论(1编辑  收藏  举报