corrected master.java

sortList and printList to static method