Collator HashCode() Example

Generates the hash code for this Collator.


Collatorclass HashCode() method example. This example shows you how to use HashCode() method.This method Generates the hash code for this Collator.

Here is the code:-
/* 
 * @Program that Generates the hash code for this Collator.
 * HashCode.java 
 * Author:-RoseIndia Team
 * Date:-16-Jun-2008
 */
import java.util.*;
import java.text.*;
public class HashCode {
public static void main(String[] args) {
Collator collate = Collator.getInstance();
  //Returns this Collator's strength property. 
  int i=collate.hashCode();
    System.out.println("Hash code for this Collator. is: "+i);
    }

}

Output of the program:-
 Hash code for this Collator. is: 681002966

Post Comment
Name:
E-mail:
Contact no :
Comments:
  Refresh Image
Verify Image:
 
 
Your Comment's
 
 
 

HOME | COPYRIGHT | CONTACT US