Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

convert array to arrayList

String[] geeks = {"Rahul", "Utkarsh", "Shubham", "Neelam"};
 
        // Conversion of array to ArrayList using Arrays.asList
        List al = Arrays.asList(geeks);
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #convert #array #arrayList
ADD COMMENT
Topic
Name
4+2 =