Sometimes it is useful to get currency of a country. Currency object can be constructed and initialized using following code segment:

Java Code:
int sum = 1000;
NumberFormat nf = NumberFormat.getInstance();
Currency curr = Currency.getInstance(Locale.ITALY);
System.out.println( sum + curr.getSymbol());
Output:
Java Code:
1000