Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

public class Main {

    public static void main(String[] args) {

        double d1 = 1245.6, d2 = -123.4;

        System.out.println("absolute value of " + d1 + " = " + StrictMath.abs(d1));

        System.out.println("absolute value of " + d2 + " = " + StrictMath.abs(d2));
    }
}