You are viewing a single comment's thread. Return to all comments →
cleanest way to do it would be to use
int i = Integer.parseInt(scan.nextLine()); etc.......
can solve the problems with 3 lines of code.
Seems like cookies are disabled on this browser, please enable them to open this website
Java Stdin and Stdout II
You are viewing a single comment's thread. Return to all comments →
cleanest way to do it would be to use
int i = Integer.parseInt(scan.nextLine()); etc.......
can solve the problems with 3 lines of code.