add OrderingTasks10305 in Java