Java / Collections
Convert the array of strings into a list.
Arrays class of java.util package contains the method asList() which accepts the array as parameter. So,
String[] fruits = {"Apple" , "Orange" , "Banana"}; List fruitsList = Arrays.asList(fruits);
More Related questions...