Timeline for Two integers start and end
Current License: CC BY-SA 3.0
8 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
May 23, 2017 at 12:41 | history | edited | CommunityBot |
replaced http://stackoverflow.com/ with https://stackoverflow.com/
|
|
Oct 23, 2015 at 21:28 | history | edited | Phrancis | CC BY-SA 3.0 |
added 289 characters in body
|
Oct 23, 2015 at 14:09 | history | edited | Phrancis | CC BY-SA 3.0 |
deleted 110 characters in body
|
Oct 23, 2015 at 13:36 | history | edited | Phrancis | CC BY-SA 3.0 |
added 704 characters in body
|
Oct 23, 2015 at 13:20 | comment | added | Phrancis | Oh, I didn't even know about that... let me edit that in, thanks for pointing it out | |
Oct 23, 2015 at 13:18 | history | edited | Phrancis | CC BY-SA 3.0 |
added 101 characters in body
|
Oct 23, 2015 at 13:16 | comment | added | Konrad Morawski |
I'd say that validating user input with try...catch is an anti-pattern, at least in a case as simple as this one. Scanner class exposes a hasNextInt method for this very purpose. I agree with bracing, I wouldn't skip braces.
|
|
Oct 23, 2015 at 13:13 | history | answered | Phrancis | CC BY-SA 3.0 |