How do I return an array of objects in java?

后端 未结 7 754
情书的邮戳
情书的邮戳 2021-01-03 05:15

How do I return an array of objects in java?

7条回答
  •  温柔的废话
    2021-01-03 06:11

    Returning an object array has been explained above, but in most cases you don't need to. Simply pass your object array to the method, modify and it will reflect from the called place. There is no pass by value in java.

提交回复
热议问题