Upgraded to Java version 1.8. Fixed syntax warnings.