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

Quick question about new object

 
Julio Ibanez
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm trying to create two classes. One with 3 methods. I'm trying to make all variables and methods static. My problem is on line score = new score() it tells me that cannot resolve symbol class score.
Can anyone shine a light on my problem? Please? I'm not sure what I'm doing wrong.... Thanks for any help you can give me.
[ edited to preserve formatting using the [code] and [/code] UBB tags -ds ]
[ March 17, 2004: Message edited by: Dirk Schreckmann ]
 
eammon bannon
Ranch Hand
Posts: 140
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Where do you define your "score" class? You seem to have a private primative double called score, but I don't see a score class which you could instantiate?
 
Nigel Browne
Ranch Hand
Posts: 703
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
[ March 17, 2004: Message edited by: Julio Ibanez ]

Try this instead

hth
Nigel
 
Julio Ibanez
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Got it Working!
Tnx for the help!!!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic