Daniel,

In order to obtain an instance of NumberFormat, you make use of the
static methods of the class (getNumberInstance, getCurrencyInstance(),
or getPercentInstance()).  These methods create objects of one of the
subclasses and returns it for use.

-AMT

> -----Original Message-----
> From: Daniel Lynn [mailto:[EMAIL PROTECTED]]
> Sent: Friday, November 10, 2000 4:09 PM
> To: [EMAIL PROTECTED]
> Subject: numberformat
>
>
> OK, so I've been staring at my Nutshell book for a few hours
> now and the
> whole NumberFormat class doesn't seem to be getting any less
> confusing... currently, my price variables come up as 1 digit
> after the
> decimal ($8.0 instead of $8.00 for example). I know numberformat can
> format to currencies, but I can't figure out how to implement it since
> it can't be instanciated. Anyone know either how to use the
> class or if
> there is another way around it? thanks much.
>
> -Daniel
>
> ==============================================================
> =============
> To unsubscribe: mailto [EMAIL PROTECTED] with body:
> "signoff JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to