The document demonstrates creating an ArrayList in Java, adding and removing elements, sorting the list, and converting it to an array. It creates an ArrayList of Integers, adds elements, removes one, sorts the list, and converts it to an array using toArray().
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
24 views
Lab Program 1 Advanced Java
The document demonstrates creating an ArrayList in Java, adding and removing elements, sorting the list, and converting it to an array. It creates an ArrayList of Integers, adds elements, removes one, sorts the list, and converts it to an array using toArray().