I know that there is a method for arrays sort() that sorts an array. But is there also something like shuffle()? Say I have this code:
String st = "a b c";
String ar = st.split(" ");
Now what if I want to print each letter only one randomly?
You can look at the .shuffle method of Collections. It could be just what you need.