added method check
Merge branch 'master' of github.com:jsfr/Advanced-Java-Programming