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!

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

My console never prints what inside my printf

when i type java Introductions nothing comes up

Hello Justin, Can you share your code or your workspace to understand what is going on?

If your code is same as codes on video, you should be sure you compiled Introduction first.

javac Introduction.java  <-- compiles the java file
java Introduction <-- runs the java file. (be careful that .java extension not required to run if you have compiled before)

I have the same issue. It looks like he doesn't accept the console.printf("example"); It seems like the compiler is ignoring it.. -.-

1 Answer

Dan Hedgecock
Dan Hedgecock
13,807 Points

If anyone else starting this course is having this problem, make sure you save first! (Silly, but I forgot this and thought there was an issue with the compiler), then compile then run the class.