simple java examples