Update the Sort Algorithms writing in Java