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());
}

}

1 comment :

  1. I have read your blog its very attractive and impressive. I like it your blog.

    Java Online Training Java EE Online Training Java EE Online Training Java 8 online training Core Java 8 online training

    Java Online Training from India Java Online Training from India Core Java Training Online Core Java Training Online Java Training InstitutesJava Training Institutes

    ReplyDelete

Copyright © Rough Record. Designed by OddThemes