Sunday, 17 February 2013

Program which displays indian currency in german format

import java.text.NumberFormat;

import java.util.Locale;


public class Currency {
    public static void main(String[] args) {
        Locale locale = Locale.GERMANY;
        String string = NumberFormat.getCurrencyInstance(locale).format(123.45);
        System.out.println(string);

    }

}


Output
123,45 €
 

No comments:

Post a Comment

Pass a HashMap from Angular Client to Spring boot API

This example is for the case where fileData is very huge and in json format   let map = new Map<string, string>()      map.set(this.ge...