create a list java with values code example
Example 1: java instantiate list with value
List<String> strings = Arrays.asList("foo", "bar", "baz");
Example 2: java arraylist declaration
ArrayList<E> yourArray = new ArrayList<E>();
//'E' can be raplaced with any data type or object, or left as
// E if used for general funcitonality