Java Tutorial 8 : Scanner, Parsing
Top Comments
All Comments (19)
-
How do you have the program say what us your nem? And you reply your name and the have it say hello (name)?
-
@leemorethomas old school? lol.. im doing a degree in Computer Science and Artificial Intelligence.. Keyboard is very handy for students.. plus in real life you will barely need the use of such a thing like scanner and Keyboard. because any modern program would take inputs from GUI..
-
@drinu93 Keyboard is old school. I'm guessing Your Senior. Let me know if you need Junior assistance to ease the load. I love Java.
-
Ok... i've spent the past 30 minutes just trying to find how to parseInt. (syntax) and this is the first tutorial/info that has made any sense to me. I wasn't putting Integer.parseInt, i was putting the string, st2.nextToken().parseInt. LOL fail. THANK YOU FOR SAVING MY SANITY :)
-
just use the Keyboard Class.. you can find it on the net.. no need for inports of initializing just 1 line ex:
System.out.print("enter name ");
String name = Keyboard.readString();
just download that :)
-
Let's go on other java tutorial videos and criticize them!
-
Nice intro to scanners. Thanks.
-
Thanks so much. This is the best vid on scanners out there in my opinion :)
-
Audio is OK, when you use headphones.
Much Easier:
To get an int: sc.nextInt();
To get a char: sc.next().charAt(0);
To get a double: sc.nextDouble();
See, no parsing... Much less confusing and less typing
JavaPrograming 3 years ago 5
I was looking for solutions to scan characters EVERYWHERE! 5 stars.
HPDDJ 3 years ago 3