求看下我的這段代碼的問題在哪里,怎么成無限循環(huán)了
public class Xun {
?public static void main(String[] args) {
??for (int i = 1; i <= 3; i++) {
???for (int j = 1; j <= i; j++) {
????System.out.println("*");
???}
???System.out.println();
??}
?}
}
public class Xun {
?public static void main(String[] args) {
??for (int i = 1; i <= 3; i++) {
???for (int j = 1; j <= i; j++) {
????System.out.println("*");
???}
???System.out.println();
??}
?}
}
2016-03-03
舉報
2016-03-03
不會無限循環(huán),如果在網(wǎng)頁上提交出錯的話,你可以檢查下中英文字符,或者在本地IDE中編譯運行。
2016-03-03
不會無限循環(huán)呀