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;
/* ww w .j a v a 2 s.c om*/
public class Main {
public static void main(String[] argv) throws Exception {
DecimalFormat format = new DecimalFormat();
System.out.println(format.getNegativeSuffix());
}
}