The
Currency class encapsulates information about a currency. It defines no constructors.
The methods supported by
Currency are shown below.
Example Program : CurrencyDemo CODE import java.util.*; OUTPUT Currency : US Dollar DESCRIPTION In the above program we are creating a currency object for Locale US and displaying it name and it's symbol. THINGS TO TRY
|