Java.util.Currency.getCurrencyCode() 方法


Java.util.Currency.getCurrencyCode() 方法

package com.codingdict;

import java.util.*;

public class CurrencyDemo {
   public static void main(String args[]) {

      // create a currency with eur code
      Currency curr = Currency.getInstance("EUR");

      // get currency code and print it
      String curCode = curr.getCurrencyCode();
      System.out.println("Currency Code is = " + curCode);
   }
}