Convert code to be 1.6 compliant and change the target to be 1.6 java