Java Java Basics Perfecting the Prototype Parsing Integers

New int variable

Don't understand here, what's wrong
String answerToLife = "42";
Int answer = Integer.pase int ( answerToLife);

5 Answers

In the video:

int age = Integer.parseInt(ageAsString);

The difference with your original post:

1) int is lowercase

2) The method is parseInt

So you'd have:

int answer = Integer.parseInt(answerToLife);

See this video @ 2:08


I'm still lost, can't get it right

Thanks got it