Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

MIA NumberFormat class

 
forrest Carleton
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My installation can not find the java.text.NumberFormat class. I included in the path: c:\j2sdk1.4.2_04\bin and defined pathclass, rebooted.
any help is appreciated.
Fc
cannot resolve symbol
symbol : class NumberFormat
location: class hInvoiceApp
------------------------------------
import javax.swing.*;
import java.lang.* ;

public class enhInvoiceApp{
public static void main(String[] args){
 
Antoine Waugh
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
is this a compilation error?
have you used the import statement?

-twans
 
Blake Minghelli
Ranch Hand
Posts: 331
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
NumberFormat is part of the java.text package which you have not imported.
Add java.text.NumberFormat or java.text.* to your imports.
BTW, you don't need to import java.lang.* as it is done implicitly for you.
 
forrest Carleton
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your right one! I needed java.text.
Thanks,
fc
 
Antoine Waugh
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
>>Your right one!
although i do not understand this,
your welcome
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic