wood burning stoves 2.0
The moose likes Beginning Java and the fly likes Integer.parseInt Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Integer.parseInt" Watch "Integer.parseInt" New topic


Scott Solomko

Joined: Apr 11, 2004
Posts: 4
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.
[ April 11, 2004: Message edited by: Scott Solomko ]

It is the soldier who salutes the flag, who serves beneath the flag, and whose coffin is draped by the flag, who allows the protester to burn the flag.
Scott Solomko

Joined: Apr 11, 2004
Posts: 4
Figured it out.
Dirk Schreckmann

Joined: Dec 10, 2001
Posts: 7023
Welcome to JavaRanch, Scott!
I'm glad we could help out as your Cardboard Analyst.

[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
sever oon
Ranch Hand

Joined: Feb 08, 2004
Posts: 268
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.
I agree. Here's the link: http://aspose.com/file-tools
subject: Integer.parseInt
It's not a secret anymore!