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 :)
@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..
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 :)
bitmp44 3 weeks ago
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 :)
drinu93 1 year ago
@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.
leemorethomas 1 week ago
@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 1 week ago
This has been flagged as spam show
To do Java Programming on a Mac
1)Download and Open JEDIT
2)Create your code and save file as extention .java
3)Open the Terminal, change the directory where your file would be located by typing CD.
4)In the terminal, type in javac usersapplicationname.java to compile it.
5)Then type java usersapplicationname to run it.
6)The terminal will show you the errors when you compile the java program (if they're any errors in the program).
TheBoyarde 2 years ago
Nice intro to scanners. Thanks.
vigodagod 2 years ago 2
Thanks so much. This is the best vid on scanners out there in my opinion :)
karioboinkers 3 years ago
I was looking for solutions to scan characters EVERYWHERE! 5 stars.
HPDDJ 3 years ago 3
very helpful videos. will you be able to do more case studies with detail code?
edeepakbansal 3 years ago
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
Let's go on other java tutorial videos and criticize them!
iamxxv 2 years ago
but love all ur vids and keep making more very helpfull programming vids
sookool999 3 years ago
i tried this program and i was compiling it... at the line.... char oper = in.charAT(0);
it says conot find symbole -method charAT(int)
dont know if u check your comments but why is this happing?
sookool999 3 years ago
in.charAt(0)... Java is case sensetive.
joshig1983 3 years ago
The audio is too quiet- otherwise it could be helpful.
paul5667 3 years ago
L2TURNUPYOURSPEAKERS...
aClass734 3 years ago
Audio is OK, when you use headphones.
lgros02 3 years ago
Very useful video, please keep it up, very good effort and useful
Rahmanqureshi 3 years ago 2