G
gaijinco
Is there any static methods in Java to do permutations and rotations?
Also, is there an easier way to sort a String than to do this:
String unsorted = "UnsortedString";
char[] u = unsorted.toCharArray();
Arrays.sort(u);
String sorted = new String(u);
Thanks a lot!
Also, is there an easier way to sort a String than to do this:
String unsorted = "UnsortedString";
char[] u = unsorted.toCharArray();
Arrays.sort(u);
String sorted = new String(u);
Thanks a lot!