Random rad = new Random();
String [] temp={"a","b","c","d","e"};
ArrayList list = new ArrayList();
for (int j = 0; j < temp.length; j++) {
list.add(temp[j]);
}
for (int j = 0; j < temp.length; j++) {
int index = rad.nextInt(list.size());
System.out.println(list.get(index));
list.remove(list.get(index));
}