L9.4: Compare two arrays Example #1

PHOTO EMBED

Mon Sep 26 2022 22:44:14 GMT+0000 (Coordinated Universal Time)

Saved by @testpro #java

class Main {
  public static void main (String[] args) {
    
    int[] arr1= {54, 44, 39, 10, 12, 101};
    int[] arr2= {54, 44, 39, 10, 12, 101};
    
    System.out.println (arr1 == arr2);

  }
}
// Output: false
content_copyCOPY