I believe you can add objects use list.add(); However, is there an alternative way of making an ArrayList of strings? Something like ArrayList("heyey","hgfhgfh","fhfghgf") ?
2 Answers
List<String> listString = Arrays.asList(new String[] {"heyey","hgfhgfh","fhfghgf"});
With listString being a fixed size list (see Arrays.asList).
If you need a variable size list:
List<String> listString = new ArrayList<String<(Arrays.asList(new String[] {"heyey","hgfhgfh","fhfghgf"}));