You are viewing a single comment's thread. Return to all comments →
int i = Integer.parseInt(scan.nextLine()); double d = Double.parseDouble(scan.nextLine()); String s = scan.nextLine();
Anyone can u plz explain this briefly?. why i can't use these lines instead of above?
int i = scan.nextInt(); Double d = scan.nextDouble(); String s = scan.next(); s += scan.nextLine();
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 →
Anyone can u plz explain this briefly?. why i can't use these lines instead of above?