Java.util.Currency.getSymbol() 方法 Java.util.CurrencyCode.getInstance() 方法 Java.util.Currency.getSymbol() 方法示例 Java.util.Currency.getSymbol() 方法 package com.codingdict; import java.util.*; public class CurrencyDemo { public static void main(String args[]) { // create a currency for euro Currency curr = Currency.getInstance("EUR"); // get and print the symbol of the currency String symbol = curr.getSymbol(); System.out.println("Currency symbol is = " + symbol); } } Java.util.CurrencyCode.getInstance() 方法 Java.util.Currency.getSymbol() 方法示例