B4Coder
0%
LessonAbout 12 min

Chapter 11 · Lesson 5 of 5

05. Project: count the votes

Put it together: read votes with Scanner, count them with a HashMap and getOrDefault, and announce the results and the winner.

Opening the lesson…