+ 1
How to convert an array to array list in Java?
I want to know there is an way we convert an array to array list with a simple student details program example.
1 Answer
+ 4
Here is the example.
https://code.sololearn.com/clI79tyn88f1/#java
Note, that using Arrays.asList() method will not give you a regular list. This method will return a fixed-sized list, like a regular array has a fixed size. You can check it by uncommenting line that calls remove method.
Using iteration will give you a regular resizable list with all the possibilities.