DecimalFormat.getNegativeSuffix() has the following syntax.
public String getNegativeSuffix()
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()); } }