Java Java Basics Perfecting the Prototype Parsing Integers

Melissa Yates
Melissa Yates
323 Points

not sure what is wrong here as i followed the example given and i am being told it is wrong

please show where i am wrong.

ParsingInts.java
String answerToLife = "42";
int answer = Interger.parseInt (answerToLife);

1 Answer

. .
. .
15,475 Points
// your code correct. just adjust Interger to Integer
String answerToLife = "42";
int answer = Integer.parseInt(answerToLife);