Example usage for java.lang Short hashCode

List of usage examples for java.lang Short hashCode

Introduction

In this page you can find the example usage for java.lang Short hashCode.

Prototype

@Override
public int hashCode() 

Source Link

Document

Returns a hash code for this Short ; equal to the result of invoking intValue() .

Usage

From source file:Main.java

public static void main(String[] args) {
    short shortNum1 = 150;
    Short ShortObj1 = new Short(shortNum1);

    int hcode = ShortObj1.hashCode();
    System.out.println("Hashcode for this Short ShortObj1 = " + hcode);
}