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 trial

Java Java Objects (Retired) Harnessing the Power of Objects Helper Methods and Conditionals

Aditya Puri
Aditya Puri
1,080 Points

Don't understand what helper methods are..

OK so I don't exactly understand what helper methods are...I get what he did in the video and everything about the code..but I didn't understand what the term "helper method" means.

Blake Larson
Blake Larson
13,014 Points

They are usually used in more complicated methods so you don't have to write the same code over and over.
In that video he does a simple version of a helper isEmpty(). Now if he wants to check if the dispenser is empty in the next method he can just use: if (isEmpty()) { do this }. You will get a lot of practice in the Karaoke app later in the course.