Java: Convert Array to ArrayList, and ArrayList to Array

preview_player
Показать описание
Learn to convert an Array to an ArrayList in Java, and convert ArrayList to Array. It also shows 3 ways to print an Array in Java, using the Streams API and a for loop.
#java
Рекомендации по теме
Комментарии
Автор

does it work only for string type cause "" arrayList.toArray(new Integer[0]); " is giving error ?

_tan