public class MainClass { public static void main(String[] args) { System.out.printf("Scientific notation: %E\n", Math.PI); } } Scientific notation: 3.141593E+00