Finding Nemo in ArrayList

# Introduction In this lab, the task is to create a program that takes three string inputs from the user, adds them to an ArrayList called "fish", and then uses the binarySearch() method of Collections to search for the element "nemo" in the fish ArrayList, storing the returned integer in a variable called "pos", and finally checking if "nemo" is present in the fish ArrayList and printing the result.

|
60 : 00

Click the virtual machine below to start practicing