java print double with only 2 numbers after the decimal point

h‮ptt‬s://www.lautturi.com
java print double with only 2 numbers after the decimal point
public class Lautturi {
	public static void main(String[] args) {
		double number = 3.14159;
		System.out.printf("%.2f", number);
	}
}

output:

3.14
Created Time:2017-10-03 16:14:52  Author:lautturi