Those error messages don't match the code (look at the line numbers). Please re-post one or both so we have consistent info to look at.
JamesCherrill
Posting Genius
6,373 posts since Apr 2008
Reputation Points: 2,130
Solved Threads: 1,073
.... but you are confusing int (a primitive data type so no methods) with Integer (a class that has lots of methods, including parseInt).
JamesCherrill
Posting Genius
6,373 posts since Apr 2008
Reputation Points: 2,130
Solved Threads: 1,073
There's no such thing as Int, just int and Integer. These details are critical.
You want to use the static parseInt method from the Integer class, so you call it like this:
Integer.parseInt(myString);
it returns an int value, so the variable you assign the value to should be an int.
int myInt = Integer.parseInt(myString);
JamesCherrill
Posting Genius
6,373 posts since Apr 2008
Reputation Points: 2,130
Solved Threads: 1,073