import java.text.MessageFormat;
public class FormatMonnaie {
public static void main(String[] argv) throws Exception {
Object[] data = new Object[] { new Double(250.50), new Double(650.15) };
String msg = MessageFormat.format("de {0,number,currency} � {1,number,currency} ",data);
System.out.println(msg);
}
}
/*
* Affichage:
* de 250,50 � � 650,15 �
*
*/