Java DecimalFormat.hashCode()
Syntax
DecimalFormat.hashCode() has the following syntax.
public int hashCode()
Example
In the following code shows how to use DecimalFormat.hashCode() method.
import java.text.DecimalFormat;
//from w w w. j av a 2s. c om
public class Main {
public static void main(String[] argv) throws Exception {
DecimalFormat format = new DecimalFormat();
System.out.println(format.hashCode());
}
}
The code above generates the following result.