DecimalFormatSymbols HashCode() Example
Returns a hash code value for this object.
DecimalFormatSymbolsclass 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:-14-Jun-2008
*/
import java.text.*;
public class HashCode {
public static void main(String[] args) {
DecimalFormatSymbols dfs = new DecimalFormatSymbols();
//returns a hash code value for this object.
int c = dfs.hashCode();
System.out.println("The hash code value for this object is: " + c);
}
} |
Output of the Program
| The hash code value for this object is: 67386 |
|