A simple java Study case