Online Java Compiler By
JavaTpoint.com
import java.util.*; public class LocaleHashCodeExample1 { public static void main(String[] args) { // create a new locale Locale locale = new Locale("java", "t", "point"); System.out.println("Locale: " + locale); // get a hash code and print it System.out.println("HashCode for this locale: " + locale.hashCode()); } }
Output