Some simple java programs