Learn Java Tutorial for Beginners, Part 7: Getting User Input

preview_player
Показать описание
-------------------------------------------------------------------------------------------------------------------------------------------
A tutorial on how to get user input in your program using the Scanner class.
--------------------------------------------------------------------------------------------------------------------------------------------
Рекомендации по теме
Комментарии
Автор

@KisekiDonum Glad you like the shortcuts! It's good to know someone's watching too! If there's anything you'd like me to cover, don't hesitate to ask.

caveofprogramming
Автор

You making me smart and you making me Bad-ass in School! Thank you so much!

heatlife
Автор

I just love these tutorials! Once I'm done, I'm gonna start scripting my game :D

hairypotty
Автор

Make sure your file is syntactically correct (no red errors anywhere); if shortcuts still don't work, try switching your workspace to an empty folder (File -> Switch workscape). I don't know why, but often shortcuts stop working because of something saved in the workspace folder. Probably you could alternatively just delete/edit some file or other, but I haven't investigated further.

caveofprogramming
Автор

You are a lifesaver... I'm so fucking happy with these tutorials. I've been wandering in and about trying to find a good tutorial vid for JAVA, and finally.. FINALLY I've found the one. Thank you so much for these. All I can say is.. You're the best, and I love you mr Cave of Programming (no homo)

ItzAnameOk
Автор

I must say you do a very good job teaching.

tacobor
Автор

Scanner is really much more convenient for getting user input.

caveofprogramming
Автор

thanks, going to look at your other vids too

tonyb
Автор

great work, Appreciate your efforts to record this. thanks

ChitsIndalkar
Автор

Thank you so much for this! I just got a 0% on my last quiz and this is helping me more completely understand what I've learned so far. Unfortunately, we don't have any review days built into our schedule so I feel behind.

shanaduffy
Автор

Hi John, how do I check if the number passed is double or not? I mean how do I verify the data type of the number so that if something else is entered, the program can recognize it

AkshaySharma-yoth
Автор

@KisekiDonum yeah im surprised these tutorials arnt more popular its best beginner java tutorials ive come across so far.

DoomCatcher
Автор

John what is wrong with this line please?
System.out.printf("You entered : %s\n" , line + " and value : %d\n", value + " and float value: %f\n", myFloat);

shoppersdream
Автор

Mucho Gracias.

Entrada stime tomar tiempo para acostumbrarse

japanuser
Автор

Sir can you please explain y did u use nextint instead of nextvalue

srijagunda
Автор

You need to compare it to another String with .equals(). A String by itself is not true or false.

caveofprogramming
Автор

tell me something, isn't it possible to transform a string into a boolean so you can use the "if" statement?

flshbangz
Автор

The shortcuts for scanner arnt working in my eclipse I dont understand why I tried exactly what you did with ctrl+shift and clicking on the left of it but I had a different symbol but I had exact code you have.

DoomCatcher
Автор

plz make a video for keyboard shortcuts, thanks for video bro :)

junaidtanoli
Автор

As a non native English application developer I only use English software and make sure my number settings are English as well. My date setting is actually ISO formatted (yyyy-mm-dd). Why? Because some software may not be available in non English languages and having programs mixing up languages only complicates stuff. Users should adapt, not the software. It would save a lot of time/money.

tabularasa
welcome to shbcf.ru