Practicing Core Java programs