Skip to content

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

Notifications You must be signed in to change notification settings

MSH-trojan/Java_17_ArrayList_2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

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.

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages