java 找不到构造函数_找不到符号 - 构造函数(java)

public class Picture

{

private Square s1;

private Square s2;

private Square s3;

private Square s4;

private Square s5;

private Square s6;

private Square s7;

private Square s8;

private Square s9;

/**

* Constructor for objects of class Picture

*/

public Picture()

{

// nothing to do... instance variables are automatically set to null

}

/**

* Draw this picture.

*/

public void draw()

{

s1 = new Square(23,87,104,"red",true);

s2 = new Square(23,112,104,"yellow",true);

s3 = new Square(23,137,104,"magenta",true);

s4 = new Square(23,87,129,"blue",true);

s5 = new Square(23,112,129,"green",true);

s6 = new Square(23,137,129,"yellow",true);

s7 = new Square(23,87,154,"magenta",true);

s8 = new Square(23,112,154,"red",true);

s9 = new Square(23,137,154,"blue",true);

}

}我不得不为课程创建一个rubix多维数据集,并且似乎无法使其工作。我不断收到错误:

cannot find symbol - constructor Square(int,int,int,java.lang.String,boolean)有没有人看到我要去哪里错了?请帮忙

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值