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 trialDavid Anzano
1,468 Pointsjshell help
Every time I try to follow along with jshell I always get stuck when trying to call pd.isEmpty(); ----> I'm making sure to save my work still not sure what the problem is. My error is "cannot find symbol" and it underlines the whole thing.
1 Answer
Gergely Horvath
Courses Plus Student 8,207 PointsMake sure you've completed each of these steps:
1) Edit PezDispenser.java, implement isEmpty method. 2) in jshell you opened the java file
/open PezDispenser.java
3) instantiate PezDispenser:
PezDispenser pd = new PezDispenser("Yoda");
4) test isEmpty method:
pd.isEmpty();