How to accept user input in Java ⌨️【8 minutes】

  Рет қаралды 223,606

Bro Code

Bro Code

Күн бұрын

Пікірлер: 279
@simrangill5830
@simrangill5830 3 жыл бұрын
You are the best teacher ever
@doronfeldman5152
@doronfeldman5152 11 ай бұрын
Agree
@bolitupac9312
@bolitupac9312 5 ай бұрын
Agree
@DANNZIU-kv2sc
@DANNZIU-kv2sc 5 ай бұрын
Agree
@CommunityCoded
@CommunityCoded 3 ай бұрын
Agree
@WaynePowersYT
@WaynePowersYT 2 ай бұрын
Agree
@davidbolduc4378
@davidbolduc4378 3 жыл бұрын
This channel is the best thing to happen to my GPA since Chegg
@pastel1213
@pastel1213 3 жыл бұрын
This is incredible bro, can't believe that not a lot of people watch this. That is the way to teach people! Keep it up! Love your videos
@MariaZarinaKay
@MariaZarinaKay 3 ай бұрын
Yeah!!!!!!!!!!!!!!!!!!!!!!!
@JuliHoffman
@JuliHoffman 2 жыл бұрын
That broke down the WHY of scanners for me, rather than "because that's just the way it is." Thank you!
@meng-junglee9071
@meng-junglee9071 3 жыл бұрын
Bro you have no idea how long it took me to wonder why I couldn't enter any input with the nextLine after nextInt. You are awesome!!
@BroCodez
@BroCodez 4 жыл бұрын
// It's good practice to close your scanner when you are done using it. scanner.close(); // I forgot to. So I didn't import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); System.out.println("What is your name? "); String name = scanner.nextLine(); System.out.println("How old are you? "); int age = scanner.nextInt(); scanner.nextLine(); System.out.println("What is your favorite food?"); String food = scanner.nextLine(); System.out.println("Hello "+name); System.out.println("You are "+age+" years old"); System.out.println("You like "+food); scanner.close(); } }
@nairaac
@nairaac 4 жыл бұрын
thanks for giving it in the comments! also mine kept on saying error on the first line.
@CS_CHILD
@CS_CHILD Жыл бұрын
Umm....I'm having a problem here please It says error..system cannot be resolved to a variable
@1jokerpro780
@1jokerpro780 3 жыл бұрын
for strings , when using scanner , its better to use .next(); instead of .nextLine(); to avoid that error , that worked for me at least . and i have to say , great video , thanks for the efforts . this is by far the most beginner friendly , right to the point , including tricks and errors tutorial. i sincerely thank you bro hahahaha
@stephaniehernandez3641
@stephaniehernandez3641 3 жыл бұрын
Thank you!!! I took a note of this :)
@paia6447
@paia6447 2 жыл бұрын
Next() keyword won't be able to print the whole text, for like name and tittle at the same time
@ayansiddiqui7383
@ayansiddiqui7383 2 жыл бұрын
Thanks , it helped a lot
@cubebrick7019
@cubebrick7019 2 жыл бұрын
helped me thanks
@sairos4057
@sairos4057 2 жыл бұрын
If you use ".next();" instead of ".nextLine();", It will be not possible to type more than one word Example: Joker - works fine Joker pro - error
@Elvin-ne6qq
@Elvin-ne6qq Жыл бұрын
I just discovered your channel, your way of explaining things without too much fuss and in an easy way is amazing, greetings from Honduras and thanks a lot👻.
@cristalpineda4178
@cristalpineda4178 3 жыл бұрын
May God bless you, its has been hard since I started college. Now I can Understand better!!!
@deepthakur14916
@deepthakur14916 Жыл бұрын
Using this series alongside with my uni course , love u bro 👊
@sarthak3401
@sarthak3401 Жыл бұрын
Just started this course...super excited to finish it ❤😊
@kubapawowski7035
@kubapawowski7035 5 ай бұрын
This tutorial is fantastic! The explanations are clear and concise, making it easy to follow along. I've been struggling with understanding [specific programming concept], but your examples really helped clarify things. Thank you for breaking down complex topics into manageable steps. Looking forward to more videos like this!
@pavelkvasnicka6856
@pavelkvasnicka6856 Жыл бұрын
This is the best Java tutorial for beginners, so you can learn Java and English in one hit. Please keep going! I vote for Java advance tutorial. Thanks a lot Bro
@TewodrosGetnet-ut6km
@TewodrosGetnet-ut6km Ай бұрын
Bro you use 1% of your knowledge and 99% of your talent to lecture. In one or other way you are the bestest one
@ratnaverma2661
@ratnaverma2661 Жыл бұрын
Hey Bro! I am from India and only your tutorials helped me learn programming even my main language didn't help, Thanks a lot, I am a kid btw
@BahaaMaleb
@BahaaMaleb 9 ай бұрын
if this guy isn't the best teacher in the world idk who is LOVE YOU BRO
@doronfeldman5152
@doronfeldman5152 11 ай бұрын
You are the best programming channel!
@danrobinlibunao4475
@danrobinlibunao4475 3 жыл бұрын
eyyy new bro here, I had been dealing with a lot of difficulties on understanding Java and thanks to you it gave me a on point lesson to different difficulties. Keep it up bro I know that you can help more beginner like me.
@mailiesathare
@mailiesathare 2 жыл бұрын
I like how you tackled the newline character stuck in the buffer integrated concept (I would still call it an error). I was taught that the buffer needed to be cleared, and I still do not know how to visualize a buffer.
@joe-o6z1g
@joe-o6z1g Жыл бұрын
For the first time my code executes without error!! # Thank you so much sir, I love your pattern of writing codes so simple ...
@zxnnightstalker2289
@zxnnightstalker2289 4 жыл бұрын
I hope you will get more than 1M views each time you uploaded a new video after one day, in the future.
@unalysuf
@unalysuf 2 жыл бұрын
Your explanations and examples is very clean and easy to learn. Thank you so much for your effort
@anamika_deb
@anamika_deb 3 жыл бұрын
Finally, get this tutorial that explained this error clearly
@LincyMcGabby
@LincyMcGabby 10 ай бұрын
You made it so simple & super easy to understand. Thank you
@DANNZIU-kv2sc
@DANNZIU-kv2sc 5 ай бұрын
Dude your tutorials are the best
@PaulLein-t9m
@PaulLein-t9m Жыл бұрын
Great explanation of the mysterious behavior of the Scanner class.
@soapeated
@soapeated 3 ай бұрын
You are a life saver THANK YOU
@UnknownPerson-t7p
@UnknownPerson-t7p 10 ай бұрын
Man! You saved my java project! Thank you!
@muzzammilsabuwala2398
@muzzammilsabuwala2398 2 жыл бұрын
Bro really you made it so easy for me Thanks a lot for that bro Whenever I get stuck I come to your channel and as always I return with a great happy feeling and also with understanding the concept ❤❤❤❤❤❤❤❤❤❤❤❤❤❤
@bobfarker4001
@bobfarker4001 2 жыл бұрын
The shia Labeouf "Just do it" icon made me subscribe. Thanks bro
@ajaydalvi1378
@ajaydalvi1378 Жыл бұрын
Thanks, Bro!! /n explanation was what I was looking for throughout the youtube
@JustNeutral14.
@JustNeutral14. 6 ай бұрын
Great tutorial. I like seeing how much java differs from python, which is the tutorial language I learned in school.
@eboylydz1148
@eboylydz1148 2 жыл бұрын
this is a comprehensive explanation
@calm_bloomer1219
@calm_bloomer1219 7 ай бұрын
Thank you for giving us such a great learning material !:)
@stanislawunruh9082
@stanislawunruh9082 3 жыл бұрын
Love your style bro!
@ihssanenedjaoui1444
@ihssanenedjaoui1444 10 ай бұрын
your videos ara just incredible
@jesterfield5034
@jesterfield5034 9 ай бұрын
Thank you so much for this playlist! I'm currently reviewing for our Algorithms class, bro and I totally forgot about it all 😭😭😭
@venkat2217
@venkat2217 2 жыл бұрын
Excellent Bro ♥️ , You've earned a couple of subscribers!
@alexandrulolea4631
@alexandrulolea4631 Жыл бұрын
Thank you for the great video! Keep up the good work!
@pushankarmakar1783
@pushankarmakar1783 Жыл бұрын
best java course!
@-omarabusnineh5174
@-omarabusnineh5174 3 жыл бұрын
I'm from Jordan, thank's u Bro code u'r professional
@thelastmuslimsamurai3109
@thelastmuslimsamurai3109 2 жыл бұрын
Bro is always here for me. Thank you Bro ❤️❤️❤️
@suleimandiveriosallum3756
@suleimandiveriosallum3756 3 жыл бұрын
Jesus, you are the best man! I discover your channel today!
@Anees-qf8so
@Anees-qf8so Жыл бұрын
you are a true gigaChad programmer bro!!!
@viperproduction6454
@viperproduction6454 3 жыл бұрын
Nice and smoothly explained
@RandomUser_543
@RandomUser_543 2 жыл бұрын
your videos are so useful, thank you
@alifaizi6996
@alifaizi6996 2 жыл бұрын
You are simply great, Bro!
@Techtinkerer3D
@Techtinkerer3D 4 ай бұрын
Bro is the realest of all bros
@nikitassouvatzis1928
@nikitassouvatzis1928 3 жыл бұрын
Αυτό είναι ένα σχόλιο για το συγκεκριμένο βίντεο. Τι αλγόριθμος και πράσινα άλογα... Αφού ήρθαν οι Έλληνες μη φοβάσαι Bro, η επιτυχία είναι δεδομένη.
@medjl6083
@medjl6083 4 жыл бұрын
Very important video of Java for input data by user with keyboard.
@souleaterboss2246
@souleaterboss2246 7 ай бұрын
a perfect reviewr ty my dude
@thisisbrewsworld
@thisisbrewsworld 2 жыл бұрын
You are amazing bro. Thank you so much
@marcinzale
@marcinzale 4 жыл бұрын
Great tutorial! Thanks!
@RuthWondwossen
@RuthWondwossen Жыл бұрын
Da best bro in Da entire world
@elkhanmammadli6267
@elkhanmammadli6267 Жыл бұрын
You are the best bro !!
@kingtyphoon
@kingtyphoon 24 күн бұрын
Very awesome video!
@SirKingCAT
@SirKingCAT 2 жыл бұрын
Very easy to understand. Thank you :)
@maddinluv3122
@maddinluv3122 2 ай бұрын
this is what i did on my own after watching import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner x = new Scanner(System.in); System.out.println("Whats your name?"); String name = x.nextLine(); System.out.println("Whats your age?"); int agr = x.nextInt(); x.nextLine(); System.out.println("Whats your favourite food"); String food = x.nextLine(); System.out.println("Hello "+ name); System.out.println("You are " + agr + " yrs old"); System.out.println("Your favourite food is "+ food); } } its a little confusing since its not as user friendly as pyton and java but your videos help quite a bit.
@CodingwithVahdat2025
@CodingwithVahdat2025 5 ай бұрын
wow brother wow very good realy
@likeafallen2620
@likeafallen2620 Жыл бұрын
Super as usually!!
@MoabiSehapi
@MoabiSehapi Жыл бұрын
It was helpful thanks❤
@fizykanaty1346
@fizykanaty1346 Жыл бұрын
Great video , thanks for the efforts !!!
@alexeybudkovskiy
@alexeybudkovskiy Жыл бұрын
Thanks Bro for a great lesson!
@KeroShenouda-z4z
@KeroShenouda-z4z 5 күн бұрын
that was helpful thank you :)
@reynanlamsen2007
@reynanlamsen2007 5 ай бұрын
I miss C so much 😭
@ilgar.mp4
@ilgar.mp4 Жыл бұрын
Short ☑️ Useful ☑️ Practical ☑️ Life Changing ☑️
@wallstreetbets7741
@wallstreetbets7741 2 жыл бұрын
thank for teaching. I learnt from you
@ap1136-c4m
@ap1136-c4m 10 ай бұрын
found it very helpful
@animeforever8508
@animeforever8508 Жыл бұрын
This is epiccccccccccccccccccccccc loving this.............
@icm0320
@icm0320 9 ай бұрын
Great tutirial ever !!!!!
@dawidbudkiewicz4509
@dawidbudkiewicz4509 Жыл бұрын
Great tutorial bro
@ryannayak5797
@ryannayak5797 4 жыл бұрын
great video bro!!
@beksaylor
@beksaylor 2 жыл бұрын
I just love your voice, @Bro Code !!
@Nithishwar7
@Nithishwar7 Жыл бұрын
this easy learn thanks of course !!!
@Zacharydvd
@Zacharydvd 3 жыл бұрын
Great Video, Bro!
@ananthan_sreekumar
@ananthan_sreekumar Жыл бұрын
thanks for this tutorial bro
@dogowo
@dogowo 2 жыл бұрын
incredible video, thank you bro
@bartomiejsniadach5795
@bartomiejsniadach5795 2 жыл бұрын
Another lesson that i understood
@bekturasanbekov1979
@bekturasanbekov1979 Жыл бұрын
Thx for video bro !
@ibrahimylmaz8378
@ibrahimylmaz8378 2 жыл бұрын
you are amazing!
@legendtenzy597
@legendtenzy597 2 ай бұрын
good explanation bro
@dr.oswald5400
@dr.oswald5400 3 жыл бұрын
Thanks for the help on java, I was using a school computer so I couldn't like or comment. I'm doing that now.
@joshuaraymond4996
@joshuaraymond4996 2 жыл бұрын
Thanks. good class
@kirillutsenko9306
@kirillutsenko9306 2 жыл бұрын
good lesson, bro
@mukandeinc
@mukandeinc 2 жыл бұрын
Thanks Giga Bro🔥
@panduswaroop2788
@panduswaroop2788 2 жыл бұрын
Fellow bro ❤️
@huseinrahiym463
@huseinrahiym463 4 жыл бұрын
Look at the thumbnail though!!😂😂😂😂
@tallapragadamadhaviramalak4540
@tallapragadamadhaviramalak4540 Жыл бұрын
Hey Bro,I have a question from my school I have an image where can I send the image?Please clarify my doubt of menu based programs🙏
@Vijay_Isaac
@Vijay_Isaac 2 жыл бұрын
Thank You ❣
@trickysachin
@trickysachin 3 жыл бұрын
Thanks❤ for it bro
@cesara9747
@cesara9747 3 жыл бұрын
a lot of prayers to the algorithm!
@omersond4891
@omersond4891 3 жыл бұрын
you deserved M views for every video
@skyler4326
@skyler4326 10 ай бұрын
i learned it, thank you
@neonyoutobe5405
@neonyoutobe5405 5 ай бұрын
import java.util.Scanner; public class Main{ public static void main{ System.out.println("What is your name"); Scanner x=new Scanner(System.in); String name=x.nextLine(); System.out.println("Your name is: "+name); } }
@DixeyDo
@DixeyDo 3 ай бұрын
Thank you very much
@NAVEENBENIWAL
@NAVEENBENIWAL 3 жыл бұрын
Got an error saying "scanner can not be resolved to a type"☹️ What should I do
@Adam-hz6wk
@Adam-hz6wk 3 жыл бұрын
If you still need this, try put scanner without the capital "S" Like: Scanner scanner = new Scanner(System.in); Not Scanner Scanner = new Scanner.....
@ratnaverma2661
@ratnaverma2661 Жыл бұрын
​@@Adam-hz6wk is right, my friend got the same error
@sharkington7007
@sharkington7007 4 ай бұрын
Excuse me, Mr. Bro. Great tutorials you have here, but could you please make more videos about using pygame? I think it would be fun for people who have mastered Python or at least have an intermediate knowledge of the language. Thank you.
@electroplayer.
@electroplayer. Жыл бұрын
Thanks bro😊
@kidsnkiddi2337
@kidsnkiddi2337 3 жыл бұрын
Nice Work
@saraguermoud5165
@saraguermoud5165 3 жыл бұрын
thank you Bro Code♥
arithmetic expressions in Java 🧮【4 minutes】
4:31
Bro Code
Рет қаралды 112 М.
Java encapsulation 💊
8:27
Bro Code
Рет қаралды 128 М.
«Жат бауыр» телехикаясы І 30 - бөлім | Соңғы бөлім
52:59
Qazaqstan TV / Қазақстан Ұлттық Арнасы
Рет қаралды 340 М.
Java GUI intro ⭐【5 minutes】
5:49
Bro Code
Рет қаралды 192 М.
How Do We Get User Input in Java? - Full Tutorial
16:26
Coding with John
Рет қаралды 42 М.
#83 User Input using BufferedReader and Scanner in Java
11:48
Java Scanner Tutorial #14
12:37
Alex Lee
Рет қаралды 368 М.
How Senior Programmers ACTUALLY Write Code
13:37
Thriving Technologist
Рет қаралды 1,6 МЛН
How to get String Input from a User in Java #12
6:22
Alex Lee
Рет қаралды 272 М.
Java constructors 👷
10:37
Bro Code
Рет қаралды 202 М.
Learn Java in One Video - 15-minute Crash Course
14:54
Coding with John
Рет қаралды 788 М.
Variables in Java ✘【12 minutes】
12:32
Bro Code
Рет қаралды 229 М.
Java objects (OOP) ☕
10:46
Bro Code
Рет қаралды 203 М.
«Жат бауыр» телехикаясы І 30 - бөлім | Соңғы бөлім
52:59
Qazaqstan TV / Қазақстан Ұлттық Арнасы
Рет қаралды 340 М.