1public static String shuffleString(String string)
2{
3 List<String> letters = Arrays.asList(string.split(""));
4 Collections.shuffle(letters);
5 String shuffled = "";
6 for (String letter : letters) {
7 shuffled += letter;
8 }
9 return shuffled;
10}
11