Java Spread operator for expanding arrays

后端 未结 0 981
终归单人心
终归单人心 2020-12-22 05:33

I would like to know if there is something like this in Java:

// using JavaScript
let ar = [1,2,3];
Math.max(4, ...ar);
//          ^^^

becau

相关标签:
回答
  • 消灭零回复
提交回复
热议问题