DecimalFormat HashCode() Example
Get the hashCode.
DecimalFormatclass HashCode() method example. This example shows you how to use HashCode() method.This method Get the hashCode.
Here is the code:-
/**
* @Program that Get the hashCode.
* HashCode.java
* Author:-RoseIndia Team
* Date:-12-Jun-2008
*/
import java.text.*;
public class HashCode {
public static void main(String[] args) {
// Creates a DecimalFormat object
DecimalFormat d = new DecimalFormat("0.00+");
// Get the hashCode.
System.out.println("The hashCode is: "+d.hashCode());
}
} |
|