Java Utils Java Java API
java.util.Objects
public static int hashCode(Object o)
Returns the hash code of a non-null argument and 0 for a null argument
package com.logicbig.example.objects;import java.util.Objects;public class HashCodeExample { public static void main(String... args) { String str = "testString"; int i = Objects.hashCode(str); System.out.println(i); }}
1727748931