2 decimal places print format JAVA

Java
printf(%.2f);
Source

Also in Java: