看视频学习JAVA,看着屏幕敲的代码。结果运行就报错,我看了好几遍, 我觉得是不是自己的电脑有问题,不应该啊,求大神帮助、,感谢、!
class MethodDemo1
{
public static void main(String[] args)
{
draw(4,5);
static void draw(int row,int col)//为啥运行不了????!!!!!!
{
for (int x =0; x<row; x++)
{
for (int y=0; y<col; y++)
{
System.out.print("*");
}
System.out.println();
}
}
}
}
class MethodDemo1
{
public static void main(String[] args)
{
draw(4,5);
static void draw(int row,int col)//为啥运行不了????!!!!!!
{
for (int x =0; x<row; x++)
{
for (int y=0; y<col; y++)
{
System.out.print("*");
}
System.out.println();
}
}
}
}