Skip to main content

NOTICE: On Friday Nov 6, Workspaces will be temporarily unavailable for maintenance.

🚀 In our NEW AI Bootcamp you'll build a working app in 28 days, no experience required. Free to all subscription levels.

✨ Earn college credits in Cybersecurity, JS, HTML, CSS and Python

Join the Treehouse affiliate program and earn 25% recurring commission! 🤑

  • Treehouse Logo
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
    • All Courses
    • Tracks
    • AI Bootcamp
    • College Credit
    • Techdegree Bootcamps
    • Front End Development
    • Full Stack JavaScript
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
    • Explore
    • Career Toolbox
    • Free Treehouse Near Me
    • Affiliates
    • Blog
    • Support
    • About
    • Learn
    • Beginner's Guide to Coding
    • Data Analysis with SQL & Python
    • Front-End Web Development
    • Python Programming Basics
    • Techdegree Bootcamp Overview
    • UX Design Fundamentals
    • AI Tools for Beginners
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks AI Bootcamp College Credit
  • Techdegree Bootcamps Front End Web Development Full Stack JavaScript
  • Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Explore Career Toolbox Free Treehouse Near Me Affiliates Blog Support About
    Learn Beginner's Guide to Coding Data Analysis with SQL & Python Front-End Web Development Python Programming Basics Techdegree Bootcamp Overview UX Design Fundamentals AI Tools for Beginners
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
Loading banner... Start your free trial at Treehouse
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • AI
      • • APIs
      • • Coding for Kids
      • • College Credit
      • • Computer Science
      • • CSS
      • • Data Analysis
      • • Databases
      • • Design
      • • Development Tools
      • • Digital Literacy
      • • Game Development
      • • Go Language
      • • HTML
      • • Java
      • • JavaScript
      • • Learning Resources
      • • Machine Learning
      • • No-Code
      • • PHP
      • • Professional Growth
      • • Python
      • • Quality Assurance
      • • React
      • • Ruby
      • • Security
      • • Swift
      • • Vibe Coding
  • Christina Vieau
    Christina Vieau
    679 Points

    JShell not finding file, I am in the PezDispenser.java file but the console is giving an error message.

    Posted November 30, 2023 1:52pm by Christina Vieau
    Christina Vieau
    679 Points
    • Java
    • Java Objects
    • Harnessing the Power of Objects
    • Abstraction at Play

    2 Answers

  • Mark Palmer
    Mark Palmer
    1,482 Points

    my console doesn't return the last line: "Dispenser is full" not sure why

    Posted October 19, 2023 10:06pm by Mark Palmer
    Mark Palmer
    1,482 Points
    • Java
    • Java Objects
    • Harnessing the Power of Objects
    • Abstraction at Play

    0 Answers

  • kelly driskel
    kelly driskel
    1,544 Points

    Unable to access PezDispenser in Jshell jshell> /open PezDispenser doesn't open up what is seen in the video.

    Posted September 16, 2021 6:12pm by kelly driskel
    kelly driskel
    1,544 Points
    • Java
    • Java Objects
    • Harnessing the Power of Objects
    • Abstraction at Play

    2 Answers

  • Lucas Easley
    Lucas Easley
    1,038 Points

    java 21 error

    Posted March 16, 2020 4:27pm by Lucas Easley
    Lucas Easley
    1,038 Points
    • Java
    • Java Objects
    • Harnessing the Power of Objects
    • Abstraction at Play

    1 Answer

  • Jack McClelland
    Jack McClelland
    1,356 Points

    !isEmpty() was used to determine if dispenser was full - not being empty is not the same thing as being full though?

    Posted December 28, 2018 10:03pm by Jack McClelland
    Jack McClelland
    1,356 Points
    • Java
    • Java Objects
    • Harnessing the Power of Objects
    • Abstraction at Play

    3 Answers

  • Jiawei Hu
    Jiawei Hu
    9,740 Points

    How do you exit jshell?

    Posted October 5, 2018 10:06am by Jiawei Hu
    Jiawei Hu
    9,740 Points
    • Java
    • Java Objects
    • Harnessing the Power of Objects
    • Abstraction at Play

    4 Answers

  • luis cantu
    luis cantu
    927 Points

    Cannot find symbol

    Posted July 22, 2018 10:53pm by luis cantu
    luis cantu
    927 Points
    • Java
    • Java Objects
    • Harnessing the Power of Objects
    • Abstraction at Play

    1 Answer

  • Benjamin Gooch
    Benjamin Gooch
    20,367 Points

    I'm doing this differently... Is there any issues with the way I'm doing it that I'm not foreseeing?

    Posted July 2, 2018 4:37am by Benjamin Gooch
    Benjamin Gooch
    20,367 Points
    • Java
    • Java Objects
    • Harnessing the Power of Objects
    • Abstraction at Play

    1 Answer

  • David Anzano
    David Anzano
    1,468 Points

    jshell help

    Posted June 28, 2018 4:29pm by David Anzano
    David Anzano
    1,468 Points
    • Java
    • Java Objects
    • Harnessing the Power of Objects
    • Abstraction at Play

    1 Answer

  • Henry B
    Henry B
    526 Points

    Printf and Println

    Posted April 9, 2018 8:03am by Henry B
    Henry B
    526 Points
    • Java
    • Java Objects
    • Harnessing the Power of Objects
    • Abstraction at Play

    1 Answer

  • Andrew Fitzpatrick
    Andrew Fitzpatrick
    3,013 Points

    Why is my code still saying it was yoda but craig switched it to Darth vader

    Posted March 17, 2018 5:46pm by Andrew Fitzpatrick
    Andrew Fitzpatrick
    3,013 Points
    • Java
    • Java Objects
    • Harnessing the Power of Objects
    • Abstraction at Play

    1 Answer

  • aden ajayi
    aden ajayi
    552 Points

    how do I fix this error: reached end of file while parsing

    Posted March 6, 2018 12:22am by aden ajayi
    aden ajayi
    552 Points
    • Java
    • Java Objects
    • Harnessing the Power of Objects
    • Abstraction at Play

    1 Answer

  • aden ajayi
    aden ajayi
    552 Points

    Example.java:21: error: reached end of file while parsing

    Posted February 22, 2018 2:45am by aden ajayi
    aden ajayi
    552 Points
    • Java
    • Java Objects
    • Harnessing the Power of Objects
    • Abstraction at Play

    4 Answers

  • polo solo
    PLUS
    polo solo
    Courses Plus Student 437 Points

    Second "String" not working...Line 21 . It skips line 21. and jump to line 22. Works when change to "int". Why?

    Posted February 10, 2018 9:43pm by polo solo
    polo solo
    Courses Plus Student 437 Points
    • Java
    • Java Objects
    • Harnessing the Power of Objects
    • Abstraction at Play

    1 Answer

  • Chris Rubio
    Chris Rubio
    1,643 Points

    On minute 4:25 (video : abstraction at play) how does craig clear his jshell ?

    Posted February 3, 2018 8:43pm by Chris Rubio
    Chris Rubio
    1,643 Points
    • Java
    • Java Objects
    • Harnessing the Power of Objects
    • Abstraction at Play

    1 Answer

  • Andrei Musat
    Andrei Musat
    738 Points

    Error: cannot find symbol symbol: class PezDispenser PezDispenser pd = new PezDispenser("Yoda");

    Posted November 8, 2017 11:18pm by Andrei Musat
    Andrei Musat
    738 Points
    • Java
    • Java Objects
    • Harnessing the Power of Objects
    • Abstraction at Play

    2 Answers

  • Rashmi Jha
    Rashmi Jha
    2,842 Points

    facing problem in jshell

    Posted September 28, 2017 12:51pm by Rashmi Jha
    Rashmi Jha
    2,842 Points
    • Java
    • Java Objects
    • Harnessing the Power of Objects
    • Abstraction at Play

    3 Answers

  • Volodymyr Rozdolsky
    Volodymyr Rozdolsky
    3,732 Points

    pd.fill(); pd.isEmpty(); ==>true?

    Posted September 9, 2017 4:00pm by Volodymyr Rozdolsky
    Volodymyr Rozdolsky
    3,732 Points
    • Java
    • Java Objects
    • Harnessing the Power of Objects
    • Abstraction at Play

    2 Answers

  • Pedro Araya
    Pedro Araya
    1,912 Points

    What if I errase the "return" on the isEmpty boolean?, does it change something?

    Posted May 1, 2017 9:21pm by Pedro Araya
    Pedro Araya
    1,912 Points
    • Java
    • Java Objects
    • Harnessing the Power of Objects
    • Abstraction at Play

    1 Answer

  • Bruno Bock
    Bruno Bock
    681 Points

    It seems i can't close jshell for some reason...

    Posted February 16, 2017 12:59pm by Bruno Bock
    Bruno Bock
    681 Points
    • Java
    • Java Objects
    • Harnessing the Power of Objects
    • Abstraction at Play

    3 Answers

  • marios armakolas
    marios armakolas
    2,147 Points

    Class names, 'PezDispenser', are only accepted if annotation processing is explicitly requested 1 error

    Posted February 12, 2017 4:09pm by marios armakolas
    marios armakolas
    2,147 Points
    • Java
    • Java Objects
    • Harnessing the Power of Objects
    • Abstraction at Play

    2 Answers

  • marios armakolas
    marios armakolas
    2,147 Points

    error PezDispenser

    Posted February 12, 2017 3:52pm by marios armakolas
    marios armakolas
    2,147 Points
    • Java
    • Java Objects
    • Harnessing the Power of Objects
    • Abstraction at Play

    1 Answer

  • Michael Hernandez
    Michael Hernandez
    1,365 Points

    Cannot find symbol error in jshell

    Posted February 9, 2017 6:18am by Michael Hernandez
    Michael Hernandez
    1,365 Points
    • Java
    • Java Objects
    • Harnessing the Power of Objects
    • Abstraction at Play

    2 Answers

  • João Ignácio Brito
    João Ignácio Brito
    1,201 Points

    Boolean method

    Posted January 31, 2017 3:45am by João Ignácio Brito
    João Ignácio Brito
    1,201 Points
    • Java
    • Java Objects
    • Harnessing the Power of Objects
    • Abstraction at Play

    2 Answers

  • Bryan Castillo
    Bryan Castillo
    2,484 Points

    Dont know where to Im missing a curly bracket

    Posted January 30, 2017 7:39pm by Bryan Castillo
    Bryan Castillo
    2,484 Points
    • Java
    • Java Objects
    • Harnessing the Power of Objects
    • Abstraction at Play

    3 Answers

  • Michael Stedman
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Michael Stedman
    Full Stack JavaScript Techdegree Student 13,838 Points

    Jshell and REPL use requirement?

    Posted December 19, 2016 7:45am by Michael Stedman
    .a{fill-rule:evenodd;}techdegree
    Michael Stedman
    Full Stack JavaScript Techdegree Student 13,838 Points
    • Java
    • Java Objects
    • Harnessing the Power of Objects
    • Abstraction at Play

    2 Answers

  • Jonathan Grieve
    Jonathan Grieve
    91,254 Points

    jShell isn't finding the PezDispenser object.

    Posted December 13, 2016 5:10pm by Jonathan Grieve
    Jonathan Grieve
    91,254 Points
    • Java
    • Java Objects (2016)
    • Harnessing the Power of Objects
    • Abstraction at Play

    6 Answers

Posting to the forum is only allowed for members with active accounts.
Please sign in or sign up to post.

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
SEE ALL

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
SEE ALL

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
SEE ALL

About Us

  • About
  • Blog
  • Community
  • Stories
  • Contact
  • Gift Card

Explore

  • Plans
  • Affiliates
  • Perks
  • Shop
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses

Treehouse is an online technology education platform founded in 2011. Treehouse offers more than 700 self-paced, video-based courses in web development, programming, data analysis, design, and AI, plus two project-based bootcamp programs in Front End Web Development and Full Stack JavaScript. Individual Treehouse plans start at $25 per month and include a 7-day free trial. Treehouse serves individual learners, businesses, schools, and public libraries. Cardholders at participating U.S. public libraries can use Treehouse for free. Select Treehouse courses, offered with University Pathways International, are recommended for college credit by ACE and NCCRS. Treehouse learners earn digital certificates for completed Tracks.

Terms & Conditions · Privacy · © 2026 Treehouse Island, Inc.
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
  • Discord