simple java program for converting coordinate system