Help with how to clear the input stream

I have a project where a user enters a series of integers, and the program must display the highest and lowest value and the average. After, it asks the user if they want to do another series. The program then must display the highest, lowest, and average of that series. I am having problems because when a second series is run, it still takes into account numbers entered into the first series. I believe the problem is that the numbers are still in the input stream, so my question is: How can I clear the input stream so it starts fresh for a second series.

Thank You for any help!
Code please!! always try and use code tags so we have something to work with.
I was able to figure this out. Thank You.
Last edited on
Topic archived. No new replies allowed.