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 trial

Java Java Basics Getting Started with Java Strings and Variables

Output incorrect

I wrote the new line of code to write "Craig is learning Java" but when I compile the program it only prints the first line. I compared my code to that in the video and it is the same. Not sure what is going on...

Jason Anders
Jason Anders
Treehouse Moderator 145,860 Points

You will need to post your code in order for the Community to help you troubleshoot. Please follow the Markdown Cheatsheet provided to see how to post your code in the Community.

:dizzy:

Donatas Ceponis
Donatas Ceponis
3,638 Points

I also have error : Introductions.java:8: error: non-static method printf(String,Object. ..) cannot be referenced from a static context
Console.printf("Hello, my name is Donatas");