Java Format - Java DecimalFormat .getDecimalFormatSymbols ()








Syntax

DecimalFormat.getDecimalFormatSymbols() has the following syntax.

public DecimalFormatSymbols getDecimalFormatSymbols()

Example

In the following code shows how to use DecimalFormat.getDecimalFormatSymbols() method.

import java.text.DecimalFormat;
//  w ww  .  jav a  2s .  co  m
public class Main {
  public static void main(String[] argv) throws Exception {
    DecimalFormat format = new DecimalFormat();
    
    System.out.println(format.getDecimalFormatSymbols());

  }
}

The code above generates the following result.