/* package whatever; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;
import java.text.NumberFormat;

/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
	public static void main (String[] args) throws java.lang.Exception
	{
		NumberFormat nf = NumberFormat.getInstance();
        nf.setMinimumFractionDigits(2);
        Double myVal = 4.0;
        Double myOtherVal = 4.15465454;
        System.out.println(nf.format(myVal));
        System.out.println(nf.format(myOtherVal));
	}
}