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. 
Unfortunately I can't use this file because I don't use eclipse. But I'll format it like you did. Give me a second