Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Java Java Basics Getting Started with Java Strings and Variables

Output remains the same no matter what i change in the code

When inputing a new console.printf("hello my name is craig"); command no matter what i change the sentence to it stays the same. I cant add commands either. It seems like it is compiling off an older instance of my code and wont update.

Steven Parker
Steven Parker
215,940 Points

Your guess sounds reasonable. We can determine why you make a snapshot of your workspace and post the link to it here.

1 Answer

Steven Parker
Steven Parker
215,940 Points

Make sure that you save your changes in the editor, using either the menu or the Ctrl-S shortcut. Then re-compile the code and run it. If that doesn't help, post that snapshot and we can take a closer look.