A simple java number converter