Corrected source to work with older Java

Fixes #4
Merge pull request #5 from sixlettervariables/develop

Corrected source to work with older Java