Display the Currency symbol of countries India, UK, USA, England, and Japan.



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

Copyright © Rough Record. Designed by OddThemes