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 trialSteven Ferrera
Courses Plus Student 420 PointsError On Creating Class section.
I keep getting this error and i am unsure why because i am following as the video says...
Example.java:6: error: cannot find symbol
PezDispenser dispenser = new PezDispenser();
^
symbol: class PezDispenser
location: class Example
Example.java:6: error: cannot find symbol
PezDispenser dispenser = new PezDispenser();
^
1 Answer
Craig Dennis
Treehouse TeacherHmmm... see if you get any errors running this:
javac PezDispenser.java
Steven Ferrera
Courses Plus Student 420 PointsSteven Ferrera
Courses Plus Student 420 PointsOh wow, I realized I never capitalized the D in PezDispenser.java when i made the new file.. Lesson learned. Appreciate it though.