I hope to sort myVideoFile
with ASCII descending, so I can get the result newVideoFile.get(0)
is "d", newVideoFile.get(1)
is "c", newVideoFile.get(2)
is "b" and newVideoFile.get(3)
is "a".
Is there a simple way to do that in java?
List<String> myVideoFile=new ArrayList<>();
myVideoFile.add("a");
myVideoFile.add("b");
myVideoFile.add("c");
myVideoFile.add("d");