Java Format - Java DecimalFormat .getPositiveSuffix ()








Syntax

DecimalFormat.getPositiveSuffix() has the following syntax.

public String getPositiveSuffix()

Example

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

/* w w w.j av  a 2 s.c  o  m*/
import java.text.DecimalFormat;

public class Main {
  public static void main(String[] argv) throws Exception {
    DecimalFormat format = new DecimalFormat();
    
    System.out.println(format.getPositiveSuffix());

  }
}