Java get hash code for a string

‮sptth‬://www.lautturi.com
Java get hash code for a string
/**
 * @author lautturi.com 
 * Java example: get the hash code of string in java
 */

import java.util.*;

public class Lautturi {

	public static void main(String[] args) {

		String a = "abcd";
		System.out.println(a.hashCode());
		
	}
}

output:

2987074
Created Time:2017-09-24 22:35:45  Author:lautturi