BlackBerry Forums Support Community

Closed Thread
LinkBack Thread Tools
Old 03-22-2007, 02:46 PM   #1 (permalink)
New Member
Join Date: Mar 2007
Model: 7190
Carrier: nothing
Posts: 3
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default using MessageFormat !!!!!!

Please Login to Remove!

hello averybody!

i have this function:

public String FormatMoneda(float i)
MessageFormat mf = new MessageFormat("{0,number,$,#,###.##}");
Object[] objs = {new Float ( i )};
String result = mf.format( objs );
objs = null;
return result;

why when run the aplicattion, the program stoped in the fist line causing the error "Uncaught exception thrown - IllegalArgumentException"... i need use or

install any more or the pattern in not a correct!!!!

i using the jde 4.1

Copyright 2004-2016
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.