1
 2
 3
 4
 5
 6
 7
 8
 9
10
import java.io.*;

public class test {
	public static void main(String[] args) {
		double num1 = 10.0 / 3.0;
		double num2 = num1 * 10.0;
		System.out.printf("%9.3f\n", num1);
		System.out.printf("%9.3f\n", num2);
	}
}

This paste never expires. View raw. Pasted through import.