我知道在方法中返回时它会是您想要返回的类型。
public int numbers(){
return number;
}
public String sentence(){
return sentence;
}
但是如果它是一个 Cell[]
,返回类型是什么?我想从方法中返回整个 Cell[]
。
最佳答案
也许我错过了什么,但为什么不呢
public Cell[] cells(){
return cells;
}
关于java - 元胞数组方法返回,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15103300/