title: java: get different parts of NumberFormat.getCurrencyInstance() result
body: <p>In Java, with NumberFormat.getCurrencyInstance(), I can get a formatted string representing a price. e.g.</p>
  
  <pre><code>NumberFormat nf = NumberFormat.getCurrencyInstance(Locale.GERMANY);
  System.out.println(nf.format(20.10)); // "20,10 €"
  </code></pre>
  
  <p>Is there an easy way to get the different part of this formatted string? i.e. something like</p>
  
  <pre><code>integerPart -&gt; 20
  decimalPart -&gt; 10
  currencySymbol -&gt; €
  decimalSeparator -&gt; ,
  </code></pre>
  
  <p>Thanks!</p>