NumberFormat num = NumberFormat.getPercentInstance(); String rates = num.format(0.03); System.out.println(rates);//输出3%