simple java map application