Sort ArrayList alphabetically
- by relyt
I'm trying to find all permutations of a string and sort them alphabetically.
This is what I have so far:
public class permutations {
public static void main(String args[]) {
Scanner s = new Scanner(System.in);
System.out.print("Enter String: ");
String chars = s.next();
findPerms("",…