Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我知道返回时的方法将是您想要返回的类型。
public int numbers(){ return number; } public String sentence(){ return sentence; }
但如果它是 a Cell[],返回类型是什么?我想Cell[]从一个方法返回整个。
Cell[]
也许我错过了一些东西,但为什么不呢
public Cell[] cells(){ return cells; }