Java quick array list
List<String> s = Arrays.asList("a1", "str", "mystr");
You can use double brace:
ArrayList<String> s = new ArrayList<String>()
{{
add("str1");
add("str hello");
add("str bye");
//...
}};
How about:
ArrayList<String> s = new ArrayList<String>();
Collections.addAll(s, "a1", "str", "mystr");
List<String> s = Arrays.asList(new String[] {"a1", "str", "mystr"});