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 = new Double(+0.0);
        System.out.println(d1.doubleValue());

        Double d2 = new Double(-0.0);
        System.out.println(d2.doubleValue());
        System.out.println(d1.equals(d2));
        System.out.println(+0.0 == -0.0);

    }
}