Here you can find the source of getAvaiableCurrencySymbols()
public synchronized static String[] getAvaiableCurrencySymbols()
//package com.java2s; /******************************************************************************* * Copyright (c) 2004, 2005 Sybase, Inc. and others. * * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors://from ww w .ja v a 2 s.c o m * Sybase, Inc. - initial API and implementation *******************************************************************************/ import java.text.NumberFormat; import java.util.ArrayList; import java.util.Locale; public class Main { private static String[] _allCurrencySymbols; /** * Returns all the currency symbols * * @return */ public synchronized static String[] getAvaiableCurrencySymbols() { if (_allCurrencySymbols == null) { Locale[] locals = Locale.getAvailableLocales(); ArrayList list = new ArrayList(); for (int i = 0; i < locals.length; i++) { list.add(NumberFormat.getInstance(locals[i]).getCurrency().getSymbol(locals[i])); } _allCurrencySymbols = (String[]) list.toArray(new String[list.size()]); return _allCurrencySymbols; } else { return _allCurrencySymbols; } } }