android java convert double to 2 decimal places

Java
String stringDecimal = String.format("%.2f, d");
Source

Also in Java: