import
java.util.Currency;
import
java.util.Locale;
public class
Currency
{
{
public static void
main(String[] a)
{
Currency currency =
Currency.getInstance(Locale.US);
System.out.println("United
States: " + currency.getSymbol());
currency =
Currency.getInstance(Locale.UK);
System.out.println("United
Kingdom: " currency.getSymbol());
}
}
Post a Comment