DecimalFormat GetPositiveSuffix() Example
Get the positive suffix.
DecimalFormatclass GetPositiveSuffix() method example. This example shows you how to use GetPositiveSuffix() method.This method Get the positive suffix.
Here is the code:-
/**
* @Program that Get the positive suffix.
* GetPositiveSuffix.java
* Author:-RoseIndia Team
* Date:-12-Jun-2008
*/
import java.text.*;
public class GetPositiveSuffix {
public static void main(String[] args) {
// Creates a DecimalFormat object
DecimalFormat d = new DecimalFormat("0.00+");
// Get the positive suffix.
String s=d.getPositiveSuffix();
System.out.println("The positive Suffix is: "+s);
}
} |
Output of the Program
| The positive Suffix is: + |
|