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.
- Host: GitHub
- URL: https://github.com/msh-trojan/java_17_arraylist_2
- Owner: MSH-trojan
- Created: 2024-05-21T14:01:24.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-22T05:36:19.000Z (about 2 years ago)
- Last Synced: 2024-05-22T06:35:17.429Z (about 2 years ago)
- Topics: arraylist, bubble-sort, if, java, loops-and-iterations
- Language: Java
- Homepage:
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.