我是个初学者,还是小白,按照练习写代码报错,然后按照视频改了,还是报错了。。。求大神看看哪里出错了,,谢谢
下面是代码,
class Function
{
public static void main(String[] args)
{
//System.out.println("Hello World!");
draw(4,6);
}
public static void draw(int row,int col)
{
for (int x=1;x<=row ;x++ )
{
for (int y=1;y=col;y++ )
{
System.out.sprint("*");
}
System.out.sprintln();
}
}
}
下面是视频里面的代码,对照过了,可是还是报错,郁闷啊~~
|
|