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

Denis Migounov
Denis Migounov
17,657 Points

How does voteCount in ideas.hbs get the number of votes?

It seems to be the only usage of voteCount. We've created public int getVoteCount() in CourseIdea.java bu it's not used anywhere in the code. So how does voteCount work?

The video I'm referring to is https://teamtreehouse.com/library/intro-to-java-web-development-with-spark/bells-and-whistles/-accessing-specific-items at 11:44. I can't figure out how to post this directly under the video :(