Java-toArray()方法
定义
TheCollectioninterface provides thetoArray()method, which returns an array ofObjectfor the collection.
It also provides thetoArray(T[])method, which returns an array of theT[]type
理解
toArray()方法用来把collection转化成array,但是如果不传参数的话,出来的array类型就会...
原创
2021-07-07 21:40:00 ·
4956 阅读 ·
0 评论