• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Integer.parseInt

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Figured it out.
 
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to JavaRanch, Scott!
I'm glad we could help out as your Cardboard Analyst.
 
Ranch Hand
Posts: 268
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic