List<String> list = Arrays.asList("foo", "bar"); or in Java 9 List<String> list = List.of("foo", "bar", "baz");