Donald Meeks562 Points
I am completely lost on the exercise. I understand what I am supposed to do but I don't know what code to use.
int answer = answerToLife; int answer = Integer.parseInt(answerToLife);
Trent Christofferson15,445 Points
When you do
int answer = answerToLife;
this will not work because answer is of type int and answerToLife is of type String. All you need is your second line
int answer = Integer.parseInt(answerToLife);