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

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.