initialise a list with an array java code example Example: java instantiate list with value List<String> strings = Arrays.asList("foo", "bar", "baz");