Create SortingApp.java

This is a main method it need another file name function.java