You can use the utility method Arrays. asList and feed that result into a new ArrayList . List<String> list = new ArrayList<String>(Collections. singletonList(s));
You can use the utility method Arrays. asList and feed that result into a new ArrayList . List<String> list = new ArrayList<String>(Collections. singletonList(s));