// Collection of code snippets by Arne Vajhøj 
// (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
public class ZeroZero {
    public static void main(String[] args) {
        double x1 = 0.0;
        double x2 = -0.0;
        System.out.println(Double.doubleToLongBits(x1) == Double.doubleToLongBits(x2));
        System.out.println(x1 == x2);
    }
}
