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

        float f1 = 12, f2 = -1;

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

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