Well, I could guess your opinion based on your previous postsCampbell Ritchie wrote:I haven't got my Head First with me at the moment, but I shall try to remember to look at it later.
< -2_147_483_648 .. > 2_147_483_647I shall leave you to work out what circumstances might lead to an Exception.
To make sure no other classes except nested would create ever an instance.// I am sure you know why there is a private constructor.
Unlike the version Rob Spoor taught me, that risks number format exceptions.
I am not at all convinced you should use multiple Scanners for System.in. Use one, which should be a private static final field in your utility class
No.Kendall Ponder wrote: . . . So should I add the scan.nextLine() to my getInteger() method so I can use it in conjunction with a method which uses nextLine()?
Look for this old post (as mentioned earlier), which shows exactly whatPlease enter three numbers: 123 456 789