Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialLeJacque Gillespie
3,990 Pointserror message
I have reworked this code as much as I dare. I keep getting this error message
JavaTester.java:44: error: cannot find symbol console.printf(answerToLife); ^ symbol: variable console location: class JavaTester 1 error
String answerToLife = "42";
int age = Integer.parseInt(answerToLife);
console.printf(answerToLife);
1 Answer
Steve Hunter
57,712 PointsThe question isn't asking you to output the result.
If you remove your last line. You should pass the challenge! :-)