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 trialHan Wu
927 PointsWhat exactly is "load" in the Pez videos?
It's not a method I think because I typed in "fill" and "charge" and they both work.
2 Answers
Ethan Lane
876 PointsI thought he was talking about
public void load() {
mPezCount = MAX_PEZ;
}
Which is a method we made in one of the videos. All it does is when load() is called is sets mPezCount = MAX_PEX as if you are loading the pez dispenser full of the pez candy.
Craig Dennis
Treehouse Teacher:load
is a REPL command that let's you load a Java file.
That clear things up?
Han Wu
927 PointsOhhh. I see thanks