Playback starts YouTube’s embedded player (privacy-enhanced mode).
Java Scanner Tutorial
ChannelAlex LeeDescription from the creator
$1,500 OFF ANY Springboard Tech Bootcamps with my code ALEXLEE1500. See if you qualify for the JOB GUARANTEE! 👉 bit.ly/3HX970h
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.
👑Start practicing now with 10 free java programs - alexlorenlee.com/
🌅 Source Code - github.com/alexlorenlee/JavaTutorialCode/blob/m…
You create a java scanner like this:
Scanner scan = new Scanner(System.in);
Then to get the next word of input from the console window and store it, do:
String userInput = scan.next();
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 :)
Do you want to learn how to write java code from scratch, in Java? Check out my Java Tutorial For Beginners: youtu.be/woJb2hAfkO0
Was this scanner code able to get your project working?
Full Java Tutorial For Beginners Playlist: youtube.com/playlist?list=PL59LTecnGM1NRUyune3S…
Free Tips: bit.ly/3U6HXcb
Disclosure: The Springboard link provided is linked to my affiliate account & supports the channel.
~
Alex Lee
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.
👑Start practicing now with 10 free java programs - alexlorenlee.com/
🌅 Source Code - github.com/alexlorenlee/JavaTutorialCode/blob/m…
You create a java scanner like this:
Scanner scan = new Scanner(System.in);
Then to get the next word of input from the console window and store it, do:
String userInput = scan.next();
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 :)
Do you want to learn how to write java code from scratch, in Java? Check out my Java Tutorial For Beginners: youtu.be/woJb2hAfkO0
Was this scanner code able to get your project working?
Full Java Tutorial For Beginners Playlist: youtube.com/playlist?list=PL59LTecnGM1NRUyune3S…
Free Tips: bit.ly/3U6HXcb
Disclosure: The Springboard link provided is linked to my affiliate account & supports the channel.
~
Alex Lee
About this tutorial
Alex Lee published this 12:37 video tutorial on October 27, 2019. It has been watched 414,739 times on YouTube.