[Solved] HasNextInt() Infinite loop [closed]
Based on your comment A user can input multiple integers the amount is unknown. Ex: 3 4 5 1. There is a space inbetween them. All i want to do is read the integers and put it in a list while using two scanners. You are probably looking for: scanner which will read line from … Read more