I have this code:
public static String SelectRandomFromTemplate(String template,int count) { String[] split = template.split(\"|\"); List
I've got another solution for that problem:
List list = Arrays.asList(split); List newList = new ArrayList<>(list);
work on newList ;)
newList