How knows Stream.toArray(Book[]::new); how many elements the array has and where is the implementation of “Book[]::new”

前端 未结 0 1213
攒了一身酷
攒了一身酷 2020-12-03 16:34

I\'m triying to understand method references and I don\'t know how with this "Book[]::new" it can create an array with the right number of elements.



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