public void setCurrency (Currency currency)

Sets the currency of these DecimalFormatSymbols. This also sets the currency symbol attribute to the currency's symbol in the DecimalFormatSymbols' locale, and the international currency symbol attribute to the currency's ISO 4217 currency code.

Parameters:
currency    the new currency to be used

Exceptions:
NullPointerException    if currency is null

See also:
setCurrencySymbol, setInternationalCurrencySymbol

Since:  1.4