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

        Object[] arr1 = new Object[] { 1, 123 };
        Object[] arr2 = new Object[] { 1, 123, 22, 4 };
        Object[] arr3 = new Object[] { 1, 123 };

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

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