AmountViewUtils { public static String getDoubleString(Locale locale, Double value) { return getDoubleString(locale, value, true, true, false, true, new StringBuilder()); }  static int getColor(Context context, Amount amount); static String getAmountString(Locale locale, Amount amount, boolean justTheNumber,
            boolean blankIfZero, boolean blankIfNull, boolean forceFraction, boolean stripOffSign); static String getDoubleString(Locale locale, Double value); static String getAmountString(Locale locale, Amount amount, boolean justTheNumber,
            boolean stripOffSign, boolean forceFraction); static String getAmountString(Locale locale, Amount amount, boolean justTheNumber, boolean stripOffSign); static String getAmountString(Locale locale, Amount amount, boolean justTheNumber); static String getAmountString(Locale locale, Amount amount);  }
@Test public void testGetDoubleStringLocale() { Locale locale; locale = Locale.UK; Assert.assertEquals("9", AmountViewUtils.getDoubleString(locale, 9.00)); Assert.assertEquals("12,345.6789", AmountViewUtils.getDoubleString(locale, 12345.67890)); locale = Locale.GERMANY; Assert.assertEquals("9", AmountViewUtils.getDoubleString(locale, 9.00)); Assert.assertEquals("12.345,6789", AmountViewUtils.getDoubleString(locale, 12345.67890)); }