simple java program that exhibits issue