NumberFormat HashCode() Example
Returns a hash code value for this object.
NumberFormatclass HashCode() method example. This example shows you how to use HashCode() method.This method Returns a hash code value for this object.
Here is the code:-
/**
* @Program that Returns a hash code value for this object.
* HashCode.java
* Author:-RoseIndia Team
* Date:-17-Jun-2008
*/
import java.text.*;
import java.util.*;
public class HashCode {
public static void main(String[] args) {
//Creating Numberformat instance
NumberFormat nf = NumberFormat.getInstance();
System.out.println("Hash code value for this object: "+nf.hashCode());
}
} |
Output of the program:-
| Hash code value for this object: 423132 |
|