Java Scanner Tutorial #14

preview_player
Показать описание

This is exactly how you use a java scanner! ✅Hopefully, what I've taught you about how to use scanners can help you with your program.

You create a java scanner like this:

Then to get the next word of input from the console window and store it, do:

This java scanner code can be tricky at first... But SURELY you'll get it :) If you followed along, congrats! You learned-by-doing!

I hope you enjoyed this java scanner tutorial! I like to have a nice mix of tutorials and actual projects for you all :)

Was this scanner code able to get your project working?

Disclosure: The Springboard link provided is linked to my affiliate account & supports the channel.

~

Alex Lee
Рекомендации по теме
Комментарии
Автор

This helped me really understand the Scanner Class better. I know this is a 4 year old video but it really helped a lot. Thank you

Nate-jgil
Автор

Alex you're amazing at explaining these things, thanks for helping me understand those basic topics!

Nneoh
Автор

Worth to say that you can also use another method instead of using: quote += scan.nextLine(); you can also just type: scan.nextLine(); after previous int age = scan.nextInt();
Also good idea is to use seperate method as:
public int getInt() {
int number = scan.nextInt();
scan.nextLine();
return number;
}
and just type for example:
int numer = getInt();


Overall great tutorial, im very new to programming myself so will use your videos for sure.

zmyslowy
Автор

System.out.println("thankyou sir");

bhargavsai
Автор

Bro I gotta let you know how much your videos helped me out this semester, the language barrier with my professor made it really difficult to understand things and class, but actually learning a lot more here than in class 😅, but anyway thanks bro your really going save me this semester

zorogotbandz
Автор

I know python and finding it really hard to get into java for like couple of years and then i quit on java because there was no resources to learn as easy as it is in python. Then this dude came in, man i do not appreciate anyone because of my ego but u dude u killing it. Your “learn java in 14 minutes” video popped in my feed i watched it with a mindset that how much an idiot one can be who is teaching java in 14 minutes. I watched and kinda liked it. Now here i am watching full course of videos and learning java. U nailed it man. Loved it and I appreciate how easy you made it to understand. I am learning java again and finally i feel i will do a careeer switch into java, thanks to u man

FootballJunk
Автор

*0.06* Scanners aren't taught very well !!! I felt that and i used to think that i was the only one facing issues with scanner input :(

ruchikakudaskar
Автор

im lowkey crying because of how good you explained this, my teacher left it out and said do it on your own, at first i was very scared and wanted to skip it and not do it but then i came across your video and ive never understood anything better than ive undertood this, thank you so muchh!!

nazazhdar
Автор

Why was that so much harder for my professor and boss to explain but this makes it seem like it’s kindergarten easy!
Thanks so much for breaking it down Barney style! I learned in 12 minutes what I couldn’t for a whole day! Thanks 🙏🏼

omarsuleiman
Автор

YOU helped my pass my final! Thank you for being so in depth, yet simple! Best tutorial vids!

jorgerivera
Автор

I have been struggling with java so much. thanks a lot for your videos

alyst
Автор

You are a true savior. I was really confused and you explained everything to me. God bless you.

aliobaidi
Автор

I don't use JAVA for absolute anything but i came hearn to learn it from time to time just because u are awesome teatcher. srsly.

Planning on put your voice on a Lo-fi beat atm.

lucaslisboacoletti
Автор

Hey Alex, I just started in college. I'm doing a Diploma in Network Systems and one of my modules is Java Programming. All my lessons are on ColCampus so I can't physically interact with my educators which is really a challenge, they don't make content as easily understandable as you do, I find myself very frustrated at times not understanding what to do, however I find your content really helpful. Thank you so much.

nazeernero
Автор

I just learned more two minutes into your video than a whole week in class. Thanks!

alexandrahulett
Автор

I always used scanner lol but never truly understood what I was doing when I thought about it.







now its crystal clear

milkonion
Автор

thank you so much. java is so much harder for me than python and this is the only resource getting me through my classes

raenamcintosh
Автор

This is one of the best tutorials I have seen! Thank you!

kiaholyfield
Автор

The beginning is so true:"if you like me, you may not have had a great java teacher"!. So true, SO TRUE!!!

ikouve
Автор

You have excellent teaching skills. Glad I found your channel. While others simply explain what to use and what the result is, you explain why to use it, and thus makes perfect sense in one's head. Thank you!!

AleX-ccdl
welcome to shbcf.ru