Java Java Basics Perfecting the Prototype Parsing Integers

Joel Coffman
Joel Coffman
2,964 Points

Please Help

What did I do wrong?

ParsingInts.java
String answerToLife = "42";
int answer = "42";

1 Answer

Khaleel Yusuf
Khaleel Yusuf
15,208 Points

You put quotes around 42. int answer = 42;