How To Get Array Input From A User In Java Using Scanner
Вставка
- Опубліковано 29 бер 2023
- $1,000 OFF ANY Springboard Tech Bootcamps with my code ALEXLEE. See if you qualify for the JOB GUARANTEE! 👉 bit.ly/3HX970h
In this video, I show you how to get several inputs from a user and store those values into an array! Just use the Scanner object to get several different pieces of input from the user and set each value of the array to each value the user enters (it could be a string, int, or anything).
I hope you enjoyed this tutorial on how to get array input from a user in Java!
Full Java Tutorial For Beginners Playlist: • Full Java Course by Al...
Free Tips: bit.ly/3U6HXcb
Disclosure: The Springboard link provided is linked to my affiliate account & supports the channel.
~
Alex Lee
If you’re new to programming but want a career in tech, I HIGHLY RECOMMEND applying to one of Springboard’s online coding bootcamps (use code ALEXLEE for $1,000 off): bit.ly/3HX970h
I really appreciate this
I realized my mistake when I was writing a program
It is a delicate process and I forgot to do the second for loop
You're seriously the best tutorial channel because you don't make a lot of assumptions about your viewers' knowledge.
Never thought you would make another Java video. This is really helpful as I'm joining a robotics team soon that uses Java to code the robots.
This man changed my life. I am about to graduate.
I’m just speechless to see your video bro
You can’t imagine how you helped us pass Java course at college
Welcome back!! Just starting out in Java and went through a lot of your vids already! Helps I’m learning arrays right now too!
ALEX!! i'm so happy that you're back! I have been watching your videos for a couple months now and you have always had a video that focused on what i'm learning in school. Funny enough, this is exactly what i need this week.
Dude I am SO glad you're back!!!!!! I've watched A LOT of your older java videos since I started a degree as software engineer. And your videos made difficult concepts so much easier to understand, that when I entered the college I understood it immediately thanks to you.
Glad to see another programming video from you, such a nice surprise!
Thank you for sharing! The tutorial is very useful and easy to understand for a beginner like me. I've been struggling a lot with learning on my own. I'm so happy that I found your channel.
Look who has come crawling back to tutorials. Mr Flippy Man.
Kidding I enjoyed the flipping videos and Instagram ones.
The long break made me realize I love flipping but I also missed helping people :))
It brings back soo many good memories, i was into java soo much back in 2020 .
Im so happy seeing you're back into it again❤
I am so happy you are back with Java videos😊
I am happy to be back :)))
Hey alex . Great to see you again.
Ur java tuts helped me land a job
Hayy, welcome back I was waiting for soo long finally you uploaded 💗
Dude I needed this for my project last week!!! 😭
Man the way you helped me during my first year😭😭😭😭❤❤
❤❤❤
Your back nice! Now I can continue learning Java.
my man’s back! hope you have been well with your athletics!
Glad you’re back!
Yes, as everyone said. I had liked your java videos and happy to see you back. There are many java videos but you should know you are really good at explaining the concepts. I mean u make it simple so keep making something.
this is absolutely amazing thank u
Nice to see you back on Java videos! Would you ever consider talking other languages too? The programming has evolved quite a bit the last few years and would be great to hear your views on say, python, go or even Rust
my guy i literally look at your videos mid lecture video for my java class because you explain it better lmao
Missing you dude 😎, welcome back
The legend is back ❤
This is super helpfulkeep making vedios.
Still here waiting for your another java videos after years!
Yoooo boy again❤ please do other languages and technologies plz
Welcome back.
Does coming back after a long break affect your programming abilities?
He is back!!
feeling so greatful to see you again,
Jai Shree Ram♥️
Hi Alex ..your videos is really helpful for many beginner like me .I want to req a video that about "Map" I really have a hard time with this . Pls explain it.And is there difference between Map and HashMap
How do u use if then statements in scanners where u want - if they printed "some word" then this happens.
For example:
System.out.println("Which direction are you from(West or East)? ");
String direction = input.nextLine();
if(direction = West) {
System.out.println("North America or South America? ");
}
He's back!
Thank u..
Please can you do a whole playlist Of object orientated programming. Etc collections array list and maps and hash everything please
Hey welcome back
The legend uploaded
BACK ON THE JAVA GRIND LFGLFGLFG
How to add empty spaces in input if have multiple input. I used nextLine() but it skips and moves to next input question.
Ar[ i ]Helpfull ❤
Spring boot please🙏🏻👨🏻💻
Do you think it’s worth getting a BS in CompSci / Software Engineering after already having industry experience? I’m unsure how much it will affect my career progression vs the experience in already building.
I think it depends on a lot of different factors like how much experience you have, what your goals are, and your responsibilities/committment. I personally think coding bootcamps can be a great alternative since BS in CompSci/Software Engineering take a lot longer for similar results. I am grateful for my CS degree from college, but it's definitely not necessary for everyone to get comp sci job. It depends from person to person.
What if the user was to input the values in a array constructor? like if it was...
classname[ ] a = new classname [ value ];
Hi Alex, I'm gonna stop learning java after ChatGpt. Isn't it time wasting?
Can you make a video where you are required to have 3 classes and link them without using super class and subclasses.
I'm not sure if I'm making sense but I just hope you get it
Is he back?
yes
The goat
Vectors tutorial?
Is this really happening? Am I awake?
🐐
Wooow👍😱
Dont waste your time with martial arts!
Be a little bit slow while teaching your going fast
THANKS