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 Objects Meet Objects Creating Classes

Kaytlynn Ransom
seal-mask
.a{fill-rule:evenodd;}techdegree
Kaytlynn Ransom
Python Web Development Techdegree Student 11,409 Points

Why doesn't "Yoda" appear?

As far as I can tell, my code is exactly the same as Craig's on both the Example.java and PezDispenser.java file. When I typed in 'clear && javac Example.java && java Example', however, only the line 'We are making a new PEZ Dispenser' appeared in the console. What am I missing?

Joseph Frazer
Joseph Frazer
5,404 Points

Even though you said you checked it could I see your code?

Jennifer Nordell
seal-mask
.a{fill-rule:evenodd;}techdegree
Jennifer Nordell
Treehouse Teacher

Hi there! Before we check your code let's make sure we check the most basic thing. Did you save your file? If there's an orange dot on the tab, it means the file is not saved and any new code you've added will not be compiled. If your file is saved, then we're going to need to see the code or a snapshot to your workspace to be able to assist you further. :sparkles: