make code compiles with jdk 6

This pull request closes #58 it changes the code so that it compiles with jdk 6 instead of 7. 
I hate Eclipse too and latest versions of IntelliJ support formatters of Eclipse (if you use IntelliJ of course). :)