✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
List<String> strList = new ArrayList<String>();strList.add("A");strList.add("C"); strList.add("B"); strList.add("Z"); strList.add("E");Collections.sort(strList);for(String str: strList) System.out.print(" " + str);