How to add strings from one array into another array in Java

后端 未结 3 962
野性不改
野性不改 2020-12-22 12:28

I have an array of strings called initStrings and an array called squares. I need to take the strings from initStrings and add them one by one into different rows in the arr

3条回答
  •  感情败类
    2020-12-22 13:13

    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)

    hope this helps

提交回复
热议问题