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 trialELBAZ Yoni
6,297 PointsERROR: ";" expected
I used the original code given in this cours workspace, however the console don't succeed to "load PezDispenser.java".
I have 2 ERRORS:
ERROR: ';' expected
load PezDispenser.java;
^
ERROR: not a statement
load PezDispenser.java;
I didn't even touched the original code intially given!
If someone see where the problem is thanks
3 Answers
Craig Dennis
Treehouse TeacherStart with a : :load PezDispenser.java
ELBAZ Yoni
6,297 PointsTHANKS!
Rashad Hill
1,708 PointsPezDispenser.java gets loaded, but I get this weird message:
java> PezDispenser pd = new PezDispenser("Yoda");
ERROR: ';' expected
PezDispenser method$iagtdym2z65ocnf38k4x();
Edit: I found my errors, typos in the coding, heh. @_@