求看下我的这段代码的问题在哪里,怎么成无限循环了
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
举报