I want to parse the string that I have in Number. This is the code I'm using but not working:
NumberFormat.getCurrencyInstance(Locale.GERMAN).parse("EUR 0,00");
The result is java.text.ParseException
So, I want to combine String with a number, I really don't care about the currency, but it would be nice to have.
I need the following type of string:
EUR 0,00 EUR 1.432,89 $0.00 $1,123.42 1,123.42$ 1,123.42 USD
Of course, there are ways with RegEx, but I think it will be a kind of bust.
source share