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

КОМЕНТАРІ • 63

  • @alexlorenlee
    @alexlorenlee  7 місяців тому +2

    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

    • @ronaldobaca8823
      @ronaldobaca8823 6 місяців тому

      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

  • @thesquarefish
    @thesquarefish Рік тому +14

    You're seriously the best tutorial channel because you don't make a lot of assumptions about your viewers' knowledge.

  • @bco-fm5qu
    @bco-fm5qu Рік тому +21

    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.

  • @williebanda3912
    @williebanda3912 Рік тому +2

    This man changed my life. I am about to graduate.

  • @emmanuelbinen6554
    @emmanuelbinen6554 Рік тому +3

    I’m just speechless to see your video bro
    You can’t imagine how you helped us pass Java course at college

  • @dang_it_batman
    @dang_it_batman Рік тому +4

    Welcome back!! Just starting out in Java and went through a lot of your vids already! Helps I’m learning arrays right now too!

  • @cristianvillalobos7701
    @cristianvillalobos7701 Рік тому +2

    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.

  • @dannynoordam8130
    @dannynoordam8130 Рік тому +1

    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.

  • @NewsIdeasInnovation
    @NewsIdeasInnovation Рік тому +1

    Glad to see another programming video from you, such a nice surprise!

  • @annnguyen3989
    @annnguyen3989 10 місяців тому

    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.

  • @Chasls
    @Chasls Рік тому +2

    Look who has come crawling back to tutorials. Mr Flippy Man.
    Kidding I enjoyed the flipping videos and Instagram ones.

    • @alexlorenlee
      @alexlorenlee  Рік тому +1

      The long break made me realize I love flipping but I also missed helping people :))

  • @jsviolet
    @jsviolet Рік тому

    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❤

  • @sita4
    @sita4 Рік тому +5

    I am so happy you are back with Java videos😊

  • @hrishikssh
    @hrishikssh Рік тому +1

    Hey alex . Great to see you again.
    Ur java tuts helped me land a job

  • @madhujyabhushandeuri
    @madhujyabhushandeuri Рік тому

    Hayy, welcome back I was waiting for soo long finally you uploaded 💗

  • @salmahalim3212
    @salmahalim3212 Рік тому

    Dude I needed this for my project last week!!! 😭

  • @ndumisongcobo2562
    @ndumisongcobo2562 Рік тому +3

    Man the way you helped me during my first year😭😭😭😭❤❤

  • @user-km5to9np3r
    @user-km5to9np3r Рік тому

    Your back nice! Now I can continue learning Java.

  • @xenofeild983
    @xenofeild983 Рік тому +1

    my man’s back! hope you have been well with your athletics!

  • @davidm3614
    @davidm3614 Рік тому +1

    Glad you’re back!

  • @dhananjaikumarpandey128
    @dhananjaikumarpandey128 Рік тому

    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.

  • @acid8017
    @acid8017 3 місяці тому

    this is absolutely amazing thank u

  • @noodlesyt4665
    @noodlesyt4665 Рік тому +2

    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

  • @astonmargolis-dias7089
    @astonmargolis-dias7089 Рік тому

    my guy i literally look at your videos mid lecture video for my java class because you explain it better lmao

  • @basirobaidi667
    @basirobaidi667 Рік тому

    Missing you dude 😎, welcome back

  • @user-uf8yd5pv5h
    @user-uf8yd5pv5h Рік тому +1

    The legend is back ❤

  • @user-kb1fk7cd6w
    @user-kb1fk7cd6w 4 місяці тому

    This is super helpfulkeep making vedios.

  • @nagliliyabnapatatas3573
    @nagliliyabnapatatas3573 Рік тому

    Still here waiting for your another java videos after years!

  • @kaveejaperera45
    @kaveejaperera45 Рік тому

    Yoooo boy again❤ please do other languages and technologies plz

  • @zelowatch30
    @zelowatch30 Рік тому

    Welcome back.
    Does coming back after a long break affect your programming abilities?

  • @ojohnpepsi
    @ojohnpepsi Рік тому

    He is back!!

  • @soothingstuff6794
    @soothingstuff6794 Рік тому +2

    feeling so greatful to see you again,
    Jai Shree Ram♥️

  • @aungbobohein9522
    @aungbobohein9522 Рік тому

    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

  • @savagestand
    @savagestand Рік тому +1

    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? ");
    }

  • @seand2075
    @seand2075 Рік тому

    He's back!

  • @vim_0077
    @vim_0077 Рік тому

    Thank u..

  • @NotMash
    @NotMash Рік тому

    Please can you do a whole playlist Of object orientated programming. Etc collections array list and maps and hash everything please

  • @mdalmamun7838
    @mdalmamun7838 Рік тому

    Hey welcome back

  • @ronto1
    @ronto1 Рік тому

    The legend uploaded

  • @CensoredMercy
    @CensoredMercy Рік тому

    BACK ON THE JAVA GRIND LFGLFGLFG

  • @girish4235
    @girish4235 4 місяці тому

    How to add empty spaces in input if have multiple input. I used nextLine() but it skips and moves to next input question.

  • @gireeshchalkara1742
    @gireeshchalkara1742 2 місяці тому

    Ar[ i ]Helpfull ❤

  • @segma939
    @segma939 Рік тому +2

    Spring boot please🙏🏻👨🏻‍💻

  • @perezident14
    @perezident14 Рік тому +1

    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.

    • @alexlorenlee
      @alexlorenlee  Рік тому +2

      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.

  • @dresscheme2940
    @dresscheme2940 Рік тому

    What if the user was to input the values in a array constructor? like if it was...
    classname[ ] a = new classname [ value ];

  • @johnragga8187
    @johnragga8187 Рік тому

    Hi Alex, I'm gonna stop learning java after ChatGpt. Isn't it time wasting?

  • @kgomotsowester4766
    @kgomotsowester4766 Рік тому

    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

  • @leeivanponce9927
    @leeivanponce9927 Рік тому +2

    Is he back?

  • @noahgsolomon
    @noahgsolomon Рік тому

    The goat

  • @hsuya29
    @hsuya29 Рік тому

    Vectors tutorial?

  • @lanfour4444
    @lanfour4444 Рік тому +3

    Is this really happening? Am I awake?

  • @ooo_rats8285
    @ooo_rats8285 2 місяці тому

    🐐

  • @fatememohammadi2495
    @fatememohammadi2495 29 днів тому

    Wooow👍😱

  • @TolqinUmrzoqov-us3bu
    @TolqinUmrzoqov-us3bu Рік тому +1

    Dont waste your time with martial arts!

  • @sudharshanss8034
    @sudharshanss8034 6 місяців тому

    Be a little bit slow while teaching your going fast

  • @thenumbergirls
    @thenumbergirls 10 днів тому

    THANKS