More Java snippet updates.