且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何从一个阵列添加到字符串Java中的另一个数组

更新时间:2022-11-11 11:56:29

这是一个有点迷惑你想达到什么样的,但回答你的问题是,你需要另一个循环的initStrings阵列上运行(这你作为函数调用。同时它是一个1维数组,所以你需要了解你想放的平方阵列也就是2维)

it's a little bit confusing what you're trying to achieve, but the answer to your question is that you need another loop to run on the initStrings array (which you called as a function. also it's a 1 dimension array so you need to understand what you want to put inside the squares array which is 2 dimensions)

希望这有助于