错在哪呢?
public class FangGe
{
public static void main(String args[])
{
int i,j;
for(i=1;i++;i<=8)
{
if(i/2 == 1)
{
for(j = 1;j++;j<=8)
{
System.out.print("* ");
}
System.out.println();
}
else
{
for(j = 1;j++;j<=8)
{
System.out.print(" *");
}
System.out.println();
}
}
}
}
------解决方案--------------------
囧,lz连for循环都不会写?