Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

import java.text.DecimalFormat;

public class Main {

    public static void main(String[] args) {
        double myVal = 12.456;
        DecimalFormat leftside = new DecimalFormat("000.0000000000");
        System.out.println(leftside.format(myVal));
    }

}