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) {

        int i1 = 12, i2 = -34;

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

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