Fix explanation for java solution