Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

import java.util.Arrays;

public class Main {

    public static void main(String[] args) {

        double[] arr1 = new double[] { 1.2, 1.23 };
        double[] arr2 = new double[] { 1.2, 1.23 };
        double[] arr3 = new double[] { 1.23, 1.2 };

        System.out.println(Arrays.equals(arr1, arr2));

        System.out.println(Arrays.equals(arr1, arr3));
    }
}