MainClass.java Source code

Java tutorial

Introduction

Here is the source code for MainClass.java

Source

public class MainClass {
    public static void main(String args[]) {
        System.out.printf("%e\n", 12345678.9);
        System.out.printf("%e\n", +12345678.9);
        System.out.printf("%e\n", -12345678.9);
        System.out.printf("%E\n", 12345678.9);
        System.out.printf("%f\n", 12345678.9);
        System.out.printf("%g\n", 12345678.9);
        System.out.printf("%G\n", 12345678.9);
    }
}