Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Integer.parseInt

 
Scott Solomko
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am attempting to add the first and second char of the first argument passed to the app. Here is my code:

And I get this error msg:

It appears to me that I am playing by all the rules but obviously not. Any assistance would be greatly appreciated.
Thanks,
Scott
[ April 11, 2004: Message edited by: Scott Solomko ]
 
Scott Solomko
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Figured it out.
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to JavaRanch, Scott!
I'm glad we could help out as your Cardboard Analyst.
 
sever oon
Ranch Hand
Posts: 268
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yea, that "cannot resolve symbol" error always means that a method, variable, class, etc, simply doesn't exist as far as the compiler is concerned. There's no method that takes a character, and that's what you were trying to call.
The "as far as the compiler is concerned" is an important part of that statement, because it often happens that it can't resolve classes that you're convinced it should know about. That usually means your classpath doesn't reference the class and the compiler can't find it.
sev
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic