How to unpack an array into different arguments on method call

后端 未结 3 1184
误落风尘
误落风尘 2021-02-14 02:31

I would like to know if it is possible to unpack an Object array into separate Object on method call which accepts vargs. This question is similar to this one.

I have a

3条回答
  •  情歌与酒
    2021-02-14 03:37

    Try to return as an array of Object instead. Then concatenate "three" at the end of the returned array.

提交回复
热议问题