Java Arrays hashCode Long


Java Arrays hashCode Long

package com.codingdict;

import java.util.Arrays;

public class ArrayDemo {
   public static void main(String[] args) {

      // initializing long array
      long[] lval = new long[] { 87, 77 };

      // hashcode for value1
      int retval = lval.hashCode();

      // printing hash code value
      System.out.println("The hash code of value1 is: " + retval);

      // value2 for double array
      lval = new long[] { 139, 85 };

      // hashcode for value2
      retval = lval.hashCode();

      // printing hash code value
      System.out.println("The hash code of value2 is: " + retval);
   }
}