Java

Denis Migounov
Denis Migounov
14,750 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 :(