I wanted to create a list of options for testing purposes. At first, I did this:
ArrayList places = new ArrayList(); places.add(\
You can use the below statements:
String [] arr = {"Sharlock", "Homes", "Watson"}; List names = Arrays.asList(arr);