Java Java Basics Perfecting the Prototype Parsing Integers

thomas sherk
thomas sherk
1,108 Points

whats wrong?

saying it cannot find something? idk

ParsingInts.java
String answerToLife = "42";
int answer = Integer.parseint(answerToLife);

1 Answer

Mohammed AlShaiban
Mohammed AlShaiban
6,387 Points

The "i" in int is uppercase. In future question please provide the error message to make it easier for others to help you

Integer.parseInt(answerToLife);