Define a collection “ArrayList” to store the students' names.
Take 5 students’ names from the user and store them in the collection.
Add three student names to the collection and remove a student name. Insert a student name in second place in the collection.
Ask the user to enter a student name and search for it in the collection and prints the result as “Exist” or “Not Exist”.
Print the whole collection using the enhanced for loop.