An open API service indexing awesome lists of open source software.

https://github.com/msh-trojan/java_17_arraylist_2

Java program showing sorting., removing, finding index and checking object in index of elements in an arraylist.
https://github.com/msh-trojan/java_17_arraylist_2

arraylist bubble-sort if java loops-and-iterations

Last synced: about 1 year ago
JSON representation

Java program showing sorting., removing, finding index and checking object in index of elements in an arraylist.

Awesome Lists containing this project

README

          

Write a Java program that does the following:

Creates an ArrayList of strings.
Adds at least 5 different names to the ArrayList.
Prints the elements of the ArrayList.
Removes the third name from the ArrayList.
Checks if a specific name (e.g., "Alice") is in the ArrayList and prints the result.
Sorts the ArrayList alphabetically.
Prints the sorted ArrayList.