If your not restricted, you could use an ArrayList of strings like:
ArrayList <String> al = new ArrayList <String> ();
To add strings to the arraylist, just use the add method.
al.add("C");
al.add("A");
al.add("E");
al.add("B");
al.add("F");
al.add("D");
al.add(0, "F");
then you can do the following to remove all the elements:
al.clear();