To print out the double value to two decimal places:

First:
import java.util.DecimalFormat;

Then create a new format object:
DecimalFormat frmt = new DecimalFormat("0.00");

Then to print out:
//doubleValue is the double you wanted to be formatted
System.out.println("Salary: " + frmt.format(doubleValue));