• Home
  • Free Trial
  • Sign In
  • Techdegree
  • Tracks
  • Library
  • Community
  • Support
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • 21st Century Skills
      • • Android
      • • APIs
      • • Business
      • • C#
      • • Computer Science
      • • CSS
      • • Data Analysis
      • • Databases
      • • Design
      • • Development Tools
      • • Digital Literacy
      • • Equity, Diversity, and Inclusion (EDI)
      • • Go
      • • HTML
      • • Java
      • • JavaScript
      • • Learning Resources
      • • Machine Learning
      • • PHP
      • • Python
      • • Quality Assurance
      • • Ruby
      • • Security
  • Filip Glinz
    Filip Glinz
    471 Points

    Could not find or load main class Example (or new created class) why?

    Posted August 17, 2020 6:12pm by Filip Glinz
    Filip Glinz
    471 Points
    • Java
    • Java Objects
    • Harnessing the Power of Objects
    • Filling the Dispenser

    1 Answer

  • Alexander Price
    Alexander Price
    422 Points

    I get the error saying that in my line 7 of Example.java, it cannot find the variable PezDispenser.MAX_PEZ);

    Posted July 25, 2020 6:55pm by Alexander Price
    Alexander Price
    422 Points
    • Java
    • Java Objects
    • Harnessing the Power of Objects
    • Filling the Dispenser

    0 Answers

  • Kortney Field
    Kortney Field
    14,078 Points

    how to reset the workspaces

    Posted December 4, 2019 2:07pm by Kortney Field
    Kortney Field
    14,078 Points
    • Java
    • Java Objects
    • Harnessing the Power of Objects
    • Filling the Dispenser

    1 Answer

  • Adam Stenning
    Adam Stenning
    7,132 Points

    "Undeclared but Uninitialized".

    Posted November 30, 2019 10:43am by Adam Stenning
    Adam Stenning
    7,132 Points
    • Java
    • Java Objects
    • Harnessing the Power of Objects
    • Filling the Dispenser

    1 Answer

  • abdelbasset sadok
    abdelbasset sadok
    1,304 Points

    why you use the same class name at the method name and why you use the same variable name twice :/ ????

    Posted November 12, 2019 4:00pm by abdelbasset sadok
    abdelbasset sadok
    1,304 Points
    • Java
    • Java Objects
    • Harnessing the Power of Objects
    • Filling the Dispenser

    0 Answers

  • Chris Yan
    Chris Yan
    Full Stack JavaScript Techdegree Student 9,250 Points

    Should we change 'characterName' to 'CHARACTER_NAME' after changing it to a constant?

    Posted October 8, 2019 10:44pm by Chris Yan
    Chris Yan
    Full Stack JavaScript Techdegree Student 9,250 Points
    • Java
    • Java Objects
    • Harnessing the Power of Objects
    • Filling the Dispenser

    1 Answer

  • Duy Nguyen
    Duy Nguyen
    583 Points

    Why do we not want to return pez count and use void

    Posted June 2, 2019 10:54pm by Duy Nguyen
    Duy Nguyen
    583 Points
    • Java
    • Java Objects
    • Harnessing the Power of Objects
    • Filling the Dispenser

    1 Answer

  • love maho
    love maho
    44 Points

    Please help

    Posted February 27, 2019 12:37am by love maho
    love maho
    44 Points
    • Java
    • Java Objects
    • Harnessing the Power of Objects
    • Filling the Dispenser

    1 Answer

  • Rana P
    Rana P
    885 Points

    Private or final? When to use where?

    Posted February 10, 2019 3:08pm by Rana P
    Rana P
    885 Points
    • Java
    • Java Objects
    • Harnessing the Power of Objects
    • Filling the Dispenser

    1 Answer

  • rehan guddu
    PRO
    rehan guddu
    Pro Student 122 Points

    Fill method

    Posted January 7, 2019 1:50pm by rehan guddu
    rehan guddu
    Pro Student 122 Points
    • Java
    • Java Objects
    • Harnessing the Power of Objects
    • Filling the Dispenser

    2 Answers

  • rehan guddu
    PRO
    rehan guddu
    Pro Student 122 Points

    pezCount

    Posted January 7, 2019 1:12pm by rehan guddu
    rehan guddu
    Pro Student 122 Points
    • Java
    • Java Objects
    • Harnessing the Power of Objects
    • Filling the Dispenser

    2 Answers

  • kevin salinas
    kevin salinas
    2,392 Points

    what do you return in each method? how do you know what to return??

    Posted September 9, 2018 3:16pm by kevin salinas
    kevin salinas
    2,392 Points
    • Java
    • Java Objects
    • Harnessing the Power of Objects
    • Filling the Dispenser

    1 Answer

  • oussama zeglama
    oussama zeglama
    Full Stack JavaScript Techdegree Student 191 Points

    What's the %d here stand for ?

    Posted July 12, 2018 12:23am by oussama zeglama
    oussama zeglama
    Full Stack JavaScript Techdegree Student 191 Points
    • Java
    • Java Objects
    • Harnessing the Power of Objects
    • Filling the Dispenser

    1 Answer

  • Michael Stewart
    Michael Stewart
    1,179 Points

    Does the main method have to be static?

    Posted March 27, 2018 5:11am by Michael Stewart
    Michael Stewart
    1,179 Points
    • Java
    • Java Objects
    • Harnessing the Power of Objects
    • Filling the Dispenser

    1 Answer

  • Andrew Fitzpatrick
    Andrew Fitzpatrick
    3,013 Points

    My output is not the same

    Posted March 17, 2018 5:15pm by Andrew Fitzpatrick
    Andrew Fitzpatrick
    3,013 Points
    • Java
    • Java Objects
    • Harnessing the Power of Objects
    • Filling the Dispenser

    0 Answers

  • Sarmishta Chaitanya
    Sarmishta Chaitanya
    2,204 Points

    Need clarification - Encapsulation and Abstraction

    Posted February 11, 2018 9:50am by Sarmishta Chaitanya
    Sarmishta Chaitanya
    2,204 Points
    • Java
    • Java Objects
    • Harnessing the Power of Objects
    • Filling the Dispenser

    2 Answers

  • Stephen Crispini
    PRO
    Stephen Crispini
    Pro Student 619 Points

    Why make MAX_PEZ public, but characterName private?

    Posted December 30, 2017 2:52am by Stephen Crispini
    Stephen Crispini
    Pro Student 619 Points
    • Java
    • Java Objects
    • Harnessing the Power of Objects
    • Filling the Dispenser

    2 Answers

  • benjamin wong
    benjamin wong
    498 Points

    cannot find symbol for PezDispenser and MAX_PEZ from PezDispenser.java to Example.java

    Posted November 22, 2017 7:37am by benjamin wong
    benjamin wong
    498 Points
    • Java
    • Java Objects
    • Harnessing the Power of Objects
    • Filling the Dispenser

    1 Answer

  • James Stride
    PRO
    James Stride
    Pro Student 621 Points

    not-static variable MAX_PEZ cannot be referenced from a static context PezDispenser.MAX_PEZ);

    Posted October 16, 2017 11:28pm by James Stride
    James Stride
    Pro Student 621 Points
    • Java
    • Java Objects
    • Harnessing the Power of Objects
    • Filling the Dispenser

    2 Answers

  • Arturs Certuks
    Arturs Certuks
    11,454 Points

    Could not find or load main class Example. - Can someone help with this, please???

    Posted August 9, 2017 8:56pm by Arturs Certuks
    Arturs Certuks
    11,454 Points
    • Java
    • Java Objects
    • Harnessing the Power of Objects
    • Filling the Dispenser

    0 Answers

  • Dylan McGee
    Dylan McGee
    1,610 Points

    Parameters

    Posted July 29, 2017 11:31am by Dylan McGee
    Dylan McGee
    1,610 Points
    • Java
    • Java Objects
    • Harnessing the Power of Objects
    • Filling the Dispenser

    1 Answer

  • Khanh Dao
    Khanh Dao
    641 Points

    Can anyone explain to me what is a object and a instance?

    Posted July 20, 2017 4:47pm by Khanh Dao
    Khanh Dao
    641 Points
    • Java
    • Java Objects
    • Harnessing the Power of Objects
    • Filling the Dispenser

    1 Answer

  • Florentin Dumitrache
    Florentin Dumitrache
    3,757 Points

    private vs public final

    Posted July 18, 2017 1:30pm by Florentin Dumitrache
    Florentin Dumitrache
    3,757 Points
    • Java
    • Java Objects
    • Harnessing the Power of Objects
    • Filling the Dispenser

    1 Answer

  • Price Rebel
    Price Rebel
    306 Points

    Why is dispenser.fill() not in the collumn?

    Posted July 17, 2017 8:11pm by Price Rebel
    Price Rebel
    306 Points
    • Java
    • Java Objects
    • Harnessing the Power of Objects
    • Filling the Dispenser

    1 Answer

  • Kenneth Emmanuel Kouadio Ziguy
    PRO
    Kenneth Emmanuel Kouadio Ziguy
    Pro Student 1,125 Points

    Still a bit confused about how objects and class work in code!

    Posted July 8, 2017 1:46pm by Kenneth Emmanuel Kouadio Ziguy
    Kenneth Emmanuel Kouadio Ziguy
    Pro Student 1,125 Points
    • Java
    • Java Objects
    • Harnessing the Power of Objects
    • Filling the Dispenser

    1 Answer

  • Jacob Powell
    Jacob Powell
    577 Points

    Error

    Posted July 7, 2017 4:08pm by Jacob Powell
    Jacob Powell
    577 Points
    • Java
    • Java Objects
    • Harnessing the Power of Objects
    • Filling the Dispenser

    2 Answers

  • Tomas Svojanovsky
    Tomas Svojanovsky
    26,679 Points

    Why set a value in constructor?

    Posted April 29, 2017 9:36am by Tomas Svojanovsky
    Tomas Svojanovsky
    26,679 Points
    • Java
    • Java Objects
    • Harnessing the Power of Objects
    • Filling the Dispenser

    1 Answer

  • Jenise Moody
    PLUS
    Jenise Moody
    Courses Plus Student 1,985 Points

    Need help with "actual and formal arguments lists differ in length".

    Posted March 31, 2017 2:06pm by Jenise Moody
    Jenise Moody
    Courses Plus Student 1,985 Points
    • Java
    • Java Objects
    • Harnessing the Power of Objects
    • Filling the Dispenser

    1 Answer

  • Aryaman Kunzru
    Aryaman Kunzru
    928 Points

    when dispenser.fill is typed what does that do?

    Posted January 31, 2017 3:26am by Aryaman Kunzru
    Aryaman Kunzru
    928 Points
    • Java
    • Java Objects
    • Harnessing the Power of Objects
    • Filling the Dispenser

    1 Answer

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

Treehouse Logo
Our mission is to bring affordable technology education to people everywhere in order to help them achieve their dreams and change the world.
Company
Careers
Contact
Library
Tracks
Community
Stories
Perks
Affiliate Program
Treehouse for Libraries
Topics
HTML
CSS
Design
JavaScript
Ruby
View all 24 Topics
Tracks
Front End Web Development
Full Stack JavaScript
Beginning Python
UX: Interaction Design
Digital Literacy
View all 41 Tracks
  • Twitter
  • YouTube
  • FaceBook
  • LinkedIn
  • Instagram
  • About Treehouse
  • Blog
  • Shop
  • Privacy Policy
  • Terms & Conditions
  • © 2021 Treehouse Island, Inc.