double d = 10.00orm
String result = String.format("%.2f%%", d).replace(".00%", "%").replace(".0%", "%");form