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 x = 2.1d;
        double y = -0.12345d;

        System.out.println(Math.abs(x));
        System.out.println(Math.abs(y));
        System.out.println(Math.abs(-9.5));
    }
}