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 Introduction to Your Tools

I'm having trouble with my workspace. I type the printf line, compile the java file and then run it. It prints nothing.

Solved! I've double checked and everything is correct. I deleted the class file and recompiled and got the same results. when I take a snapshot, it shows that nothing was added to the java file to print out. I took a screen print before taking the snapshot and my screenprint came out correctly... the snapshot does not.

As I was writing this I realized what the problem was. I didn't save the file, so when it compiled, it didn't compile the changes. I'm humbling myself here to hopefully save someone else the frustration and time.

Tristan Smith
Tristan Smith
3,171 Points

Hey redvil! Glad you got it all figured out. That happens.

Not entirely sure how people handle this here, but..If you could, could you update your post with "Solved" in the title. :-)

2 Answers

Thanks Tristan, it wouldn't let me update the title, but I added it to the question detail.

Thank you. I do that too, make a change and forget to save. Control+S does the trick.