Code example for DecimalFormatSymbols

Methods: getMonetaryDecimalSeparatorsetMonetaryDecimalSeparator

0
        dfs.setCurrencySymbol("$");
        assertEquals("Returned incorrect CurrencySymbol symbol", "$", dfs.getCurrencySymbol());
    } 
 
    public void test_setMonetaryDecimalSeparatorC() { 
        dfs.setMonetaryDecimalSeparator('#');
        assertEquals("Returned incorrect MonetaryDecimalSeparator symbol",
                '#', dfs.getMonetaryDecimalSeparator());
    } 
 
    static void assertDecimalFormatSymbolsRIFrance(DecimalFormatSymbols dfs) {
        // Values based on Java 1.5 RI DecimalFormatSymbols for Locale.FRANCE 
        /* 
         * currency = [EUR] 
         * currencySymbol = [U+20ac] // EURO SIGN 
         * decimalSeparator = [,][U+002c] 
         * digit = [#][U+0023] 
         * groupingSeparator = [U+00a0] // NON-BREAKING SPACE 
         * infinity = [U+221e] // INFINITY 
         * internationalCurrencySymbol = [EUR]