Java tutorial
import java.util.Currency; public class Main { public static void main(String args[]) { // create a currency object with specified currency code Currency curr = Currency.getInstance("USD"); System.out.println("Currency code :" + curr.getCurrencyCode()); } }