Object oriented java language course examples