Java Java Basics Perfecting the Prototype Parsing Integers

Create a new int variable that is named answer. Store the integer version of answerToLife in it.

am confused

ParsingInts.java
int answer = Integer.parseInt(answerToLife);

4 Answers

Mike Papamichail
Mike Papamichail
4,883 Points

Can you elaborate on what confuses you? ;)

i dont know what to do

Mike Papamichail
Mike Papamichail
4,883 Points

What do you mean? The line of code you posted is the correct answer.

i dont understand what you are saying

Mike Papamichail
Mike Papamichail
4,883 Points

Sorry but i don't know how i can help you...

never mind ive realised my error