Java Currency Code Get getDefaultCurrency()

Here you can find the source of getDefaultCurrency()

Description

get Default Currency

License

Open Source License

Declaration

public static Currency getDefaultCurrency() 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import java.text.NumberFormat;
import java.util.*;

public class Main {
    public static Currency getDefaultCurrency() {
        return NumberFormat.getNumberInstance(Locale.getDefault()).getCurrency();
    }//from  w  w w .  j  ava2s  .  c o  m
}

Related

  1. getAvaiableCurrencySymbols()
  2. getCurrency(final String code)
  3. getCurrencyDisplay(Object amount)
  4. getCurrencyNationNumber(double num, int dec)
  5. getCurrencyString(long value)
  6. getInstance(String currencyCode)