Java Format - Java DecimalFormat .isDecimalSeparatorAlwaysShown ()








Syntax

DecimalFormat.isDecimalSeparatorAlwaysShown() has the following syntax.

public boolean isDecimalSeparatorAlwaysShown()

Example

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

import java.text.DecimalFormat;
//from   w ww .  j  av a  2s .  c  o m
public class Main {
  public static void main(String[] argv) throws Exception {
    DecimalFormat format = new DecimalFormat();
    
    System.out.println(format.isDecimalSeparatorAlwaysShown());

  }
}

The code above generates the following result.