Currency symbol for all countries

Code to get currency symbol:

    Currency currency = null;
    Locale locale = null;
    String currencySymbol = null;
  /*Get List of available countries from liferay country table*/
    List<Country> countryCode = CountryServiceUtil.getCountries();
   
    for(Country country:countryCode)
    {
        try{
            locale = new Locale.Builder().setRegion(country.getA2()).build();
            currency = Currency.getInstance(locale);   
               currencySymbol = currency.getSymbol(locale);
              System.out.println("currency symbol is......"+currencySymbol);
            }
        catch(Exception e){
            System.out.println("exception..."+e);
        }
    }

Comments

  1. Free Online Poker Against other Players - Febcasino ボンズ カジノ ボンズ カジノ 우리카지노 계열사 우리카지노 계열사 1XBET 1XBET 3527NFL Week 15 Odds, Predictions and Betting Lines - TopBet

    ReplyDelete
  2. Playland Casino - Mapyro
    Find your 원주 출장마사지 nearest Casino 창원 출장마사지 near you and have the 목포 출장안마 chance to play all your favorite slots and video poker games. 군산 출장안마 The fun never 영천 출장마사지 stops at Yoyo!

    ReplyDelete

Post a Comment

Popular posts from this blog

Liferay 7 overriding MVC Commands

Liferay Tabs Search container pagination

Display portlet as popup in theme