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){ }