simple java converter