FAQ: Create a Histogram - Iterating Over the Hash

If using gets the user must click the prompt in the console and quickly type and enter something. Quickly is the operative word. It times out in only a few seconds.

Best advice, don’t use gets. It’s only a lesson anyway, and user input is moot. Instead, simply create the values you wish to use in the program and pass them to the method.

I am still having this problem a whole year later!