Practicing java