Hey I have a question so I'm trying to create a different scanner method where I ask the user what their major is I imported the java.util.Scanner I did "what is your name?" and "How old are you" I then wanted to ask "What is your major?" So I was going to use the "String major =keyboard.nextLine();" but it completely skips that part... What am I doing wrong?? The funny thing is that when I use the method nextLine on the "What is your name" it works :/
@@Appficial I get "The method printLine is undefined for the Type Scanner" when I did: String major = keyboard.printLine(); I also thought of doing this: keyboard.printLine(); and got the same error
Please SUBSCRIBE! More programming videos coming soon! ✌️
You had me at "You love the D."
In seriousness, thanks for helping me get my noodle around the next method.
Haha, no problem. Glad the video helped
Your humor made my night. Thank You!
Lol thanks
That joke at the end...superb *slow clap*
Lol thanks
Thanks for helping me.. In my practical.. God bless u
You're welcome!
Hey I have a question so I'm trying to create a different scanner method where I ask the user what their major is
I imported the java.util.Scanner I did "what is your name?" and "How old are you" I then wanted to ask "What is your major?" So I was going to use the
"String major =keyboard.nextLine();" but it completely skips that part... What am I doing wrong??
The funny thing is that when I use the method nextLine on the "What is your name" it works :/
Add this statement where the issue is happening to escape the carriage return causing the issue: keyboard.printLine();
@@Appficial I get "The method printLine is undefined for the Type Scanner"
when I did:
String major = keyboard.printLine();
I also thought of doing this:
keyboard.printLine(); and got the same error
Haha this is exactly the kind of programming help I was looking for
+1 for Humor, loved it !
Thanks bro!
you are great ...thanks for helping me out
Thanks, you're welcome!
DONALD TRUMP WANTS TO KNOW YOUR LOCATION🤣🤣
Lol
Hmm i wonder what does the letter d mean 🤔
2:25
LOL i jsut thought the ide itself hates trump N doesn't want to print out his name
Lol thanks for watching
come on man
Lol
Does it work when your name is Joe Biden ?
Bro one doubt why we have to put this statement import java.util.scanner ; what is the meaning of this ☹️
It adds the scanner library to your java program, so that you can use it and all of its methods
@@Appficial tq bro