make arraylist with values in java code example
Example 1: arraylist with values
List<String> x = new ArrayList<>(Arrays.asList("xyz", "abc"));
Example 2: how to make a new arraylist java
ArrayList<Type> name = new ArrayList<Type>();
List<String> x = new ArrayList<>(Arrays.asList("xyz", "abc"));
ArrayList<Type> name = new ArrayList<Type>();