jsquared21 / Intro-to-Java-Programming

Solutions to Programming Exercises in Introduction to Java Programming, Comprehensive Version (10th Edition) by Y. Daniel Liang

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Exercise_25/Exercise_25_03/Exercise_25_03.java API misuse

SilverSucks opened this issue · comments

Before calling nextInt(), is it necessary to check boolean hasInput = scanner.hasNext();?