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 trialBrandy McCain
3,160 Pointsnon-static method printf(String,Object...) cannot be referen ced from a static context
non-static method printf(String,Object...) cannot be referen ced from a static context I get this for console.printf("%s is a %s %s. ", name, adjective, noun); what am I doing wrong???
1 Answer
Lee Reynolds Jr.
5,160 PointsThe only thing that I see about the code that you just added is that you have:
console.printf("%s is a %s %s. ", name, adjective, noun);
try adding the line break in there like this:
console.printf("%s is a %s %s \n.", name, adjective, noun);
Can you add your code from the challenge in. It will be easier to help you if we could see the code please :) Happy Coding