Java Java Basics Perfecting the Prototype Parsing Integers

Aidan L.
Aidan L.
1,056 Points

Convert String to Int error, Need Help!

String ageAsString = console.readLine("How old are you? ");

int age = Interger.parseInt(ageAsString);

Error: cannot find symbol \

int age = Interger.parseInt(ageAsString);

1 Answer

Hi Aidan,

It looks like you have a typo in Interger.parseInt(ageAsString); Remove the 'r' in the word Interger.

Aidan L.
Aidan L.
1,056 Points

OMG, THANK YOU!!!