correct java part