Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有这样的功能
void doSmth(Long... paramg){ }
但我不能通过long[]而不是Long...。为什么?我认为这是相同的事情(它们之间有什么区别?)。
long[]
Long...
我怎样才能通过 long[] 而不是 Long... ?
long可以自动装箱,Long而不是数组 ( long[])
long
Long
为了long[]工作,它应该是
void doSmth(long... paramg){ }