DecimalFormat.hashCode() has the following syntax.
public int hashCode()
In the following code shows how to use DecimalFormat.hashCode() method.
import java.text.DecimalFormat; // ww w . j a va 2 s . c o m 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.