Added methods for Assignment2.java
Merge branch 'master' of https://github.com/MikeSzp/Assignment2