title: How do I add a new Currency to java.util.Currency for an existing country code in Java 7?
body: <p>For example, the Chinese currency has the <code>ISO 4217</code> code <code>CNY</code>. Since free global trading in that currency is restricted though, there's a second 'offshore' currency equivalent, called <code>CNH</code>. Wikipedia has a bit of <a href="http://en.wikipedia.org/wiki/Renminbi#CNH" rel="noreferrer">summary</a> of this all.</p>
  
  <p>In <code>Java 7</code>, there's a <a href="http://docs.oracle.com/javase/7/docs/technotes/guides/intl/enhancements.7.html#currency" rel="noreferrer">method for updating</a> the set of three letter <code>ISO 4217</code> codes that the JVM ships with.  However, it can't be used to add a separate currency code to an existing country code: it would replace <code>CNY</code> with <code>CNH</code>, which is no good for my purposes.</p>
  
  <p>How do I add <code>CNH</code> (which is not in the <code>ISO 4217</code> list) to the set of available currencies in <code>Java 7</code>, without overwriting <code>CNY</code>?  </p>
  
  <p>Put another way, how can I get multiple currency codes for a single country?</p>
  
  <p>Note that this question: <a href="https://stackoverflow.com/questions/9982537/how-do-i-add-the-new-currency-code-to-java">How do I add the new currency code to Java?</a> was <em>asked and answered</em> for <strong>Java 6</strong>.  But the strategy of replacing <code>java.util.CurrencyData</code> doesn't work because that file no longer exists.</p>