日期:2014-05-20  浏览次数:20613 次

哪儿又错了嘛。。
class Demo
{
public static void main(String[] args)
for(int a = 3;a<7;a++)

for(int x = 0;x<4;x++)
{
System.out.print("*");
}
System.out.println("");
}
}

------解决方案--------------------
main函数后面少{
------解决方案--------------------
少了半个大括号
System.out.println("");写成System.out.println();就行了
------解决方案--------------------
public static void main(String[] args) {
for (int a = 3; a < 7; a++) {
for (int x = 0; x < 4; x++) {
System.out.print("*");
}
System.out.println("");
}
}