Java Format - Java DecimalFormat .getNegativeSuffix ()








Syntax

DecimalFormat.getNegativeSuffix() has the following syntax.

public String getNegativeSuffix()

Example

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

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

  }
}