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
@Nate-jg6il10 ай бұрын
This helped me really understand the Scanner Class better. I know this is a 4 year old video but it really helped a lot. Thank you
@AdebowaleAdebayo-xp3cf7 ай бұрын
Yeah bro
@Captenprice2 ай бұрын
Fr
@bhargavsai24494 жыл бұрын
System.out.println("thankyou sir");
@peacequest22 жыл бұрын
Why println
@Steven-ke2ss2 жыл бұрын
@@peacequest2 ln is short for line, so the linputed line will be printed which is 'thank you sir'
@ishworghimire30172 жыл бұрын
@@peacequest2 to break line
@ishworghimire30172 жыл бұрын
@@Steven-ke2ss hlo
@peacequest22 жыл бұрын
@@ishworghimire3017 yeah i know thx
@zmyslowy275 жыл бұрын
Worth to say that you can also use another method instead of using: quote += scan.nextLine(); you can also just type: scan.nextLine(); after previous int age = scan.nextInt(); Also good idea is to use seperate method as: public int getInt() { int number = scan.nextInt(); scan.nextLine(); return number; } and just type for example: int numer = getInt(); Overall great tutorial, im very new to programming myself so will use your videos for sure.
@Martin-jf4ji4 жыл бұрын
dude i was having problems with my paper on passing scanners as perimeters thank you very much!
@Nneoh14 жыл бұрын
Alex you're amazing at explaining these things, thanks for helping me understand those basic topics!
@zorogotbandz11484 жыл бұрын
Bro I gotta let you know how much your videos helped me out this semester, the language barrier with my professor made it really difficult to understand things and class, but actually learning a lot more here than in class 😅, but anyway thanks bro your really going save me this semester
@ruchikakudaskar27365 жыл бұрын
*0.06* Scanners aren't taught very well !!! I felt that and i used to think that i was the only one facing issues with scanner input :(
@gioralphpusta46763 жыл бұрын
We all do bud.
@brooklynohio5183 жыл бұрын
Me too I am vonfused
@harshitshesh60273 жыл бұрын
What is Resource leak "sc" please make this topic video please
@tanishqramesh24510 ай бұрын
I am in that stage rn😭😭
@ikouve2 жыл бұрын
The beginning is so true:"if you like me, you may not have had a great java teacher"!. So true, SO TRUE!!!
@nazazhdar96972 жыл бұрын
im lowkey crying because of how good you explained this, my teacher left it out and said do it on your own, at first i was very scared and wanted to skip it and not do it but then i came across your video and ive never understood anything better than ive undertood this, thank you so muchh!!
@omarsuleiman91093 жыл бұрын
Why was that so much harder for my professor and boss to explain but this makes it seem like it’s kindergarten easy! Thanks so much for breaking it down Barney style! I learned in 12 minutes what I couldn’t for a whole day! Thanks 🙏🏼
@nazeernero68875 ай бұрын
Hey Alex, I just started in college. I'm doing a Diploma in Network Systems and one of my modules is Java Programming. All my lessons are on ColCampus so I can't physically interact with my educators which is really a challenge, they don't make content as easily understandable as you do, I find myself very frustrated at times not understanding what to do, however I find your content really helpful. Thank you so much.
@alyst792 жыл бұрын
I have been struggling with java so much. thanks a lot for your videos
@aliobaidi83743 жыл бұрын
You are a true savior. I was really confused and you explained everything to me. God bless you.
@milkonion3 жыл бұрын
I always used scanner lol but never truly understood what I was doing when I thought about it. now its crystal clear
@alexandrahulett9464 жыл бұрын
I just learned more two minutes into your video than a whole week in class. Thanks!
@jorgerivera70085 жыл бұрын
YOU helped my pass my final! Thank you for being so in depth, yet simple! Best tutorial vids!
@alexlorenlee5 жыл бұрын
That’s awesome great job! Thanks!
@gregoryyang89885 жыл бұрын
*me
@harshitshesh60273 жыл бұрын
What is Resource leak "sc" please make this topic video please
@lucaslisboacoletti87523 жыл бұрын
I don't use JAVA for absolute anything but i came hearn to learn it from time to time just because u are awesome teatcher. srsly. Planning on put your voice on a Lo-fi beat atm.
@raenamcintosh11 ай бұрын
thank you so much. java is so much harder for me than python and this is the only resource getting me through my classes
@michaellabeltran38073 жыл бұрын
School from home is hard, because sometimes we are having trouble with internet connection and I cant often understand my instructor. What I do is I go to your youtube channel and I undertand your video really well and it helps me to answer my profs activities. Thank you so much!!!
@michaellabeltran38073 жыл бұрын
You explain every topic really well , it is easy to understand and i find myself going back to your channel eveyday to learn something new
@cagla33602 жыл бұрын
thank you so much! this is my first year in computer science and my professor doesn't upload any lecture notes to our school's website. I was hopeless about studying before I found your channel.
@mcjohnbolivar4 жыл бұрын
this is the lesson that i am looking for, teaching every codes uses. my professor teaching as to code but not teaching as how the code works.
@adengouled96143 жыл бұрын
I'm sure you've heard it before but you're a really good teacher!
@AleX-cc2dl4 жыл бұрын
You have excellent teaching skills. Glad I found your channel. While others simply explain what to use and what the result is, you explain why to use it, and thus makes perfect sense in one's head. Thank you!!
@tell19982 жыл бұрын
Thank you for this video. I'm currently taking Java Programming for my online class and it's online only. I work full time and am a college student full time so I have little time to study and fully take it in. I haven't fully read Scanner and was a little confused from it (if I had more time I would fully understand) but being able to watch your video and get a better explanation helped me understand it better. Thank you
@Neoscarface63423 жыл бұрын
I dont know who you are but you may have saved my semester
@afonnechijindu4378 Жыл бұрын
Thanks Alex. Your explanation is top notch. Before now I wanted to skip that scanner sh*t but I could now play around with it. Thank you. AC from Nigeria
@nafizatasnim46913 жыл бұрын
yur a genius! yu solved my all problems that I have in java program. yu made my life easier xxxx....
@kiaholyfield923 жыл бұрын
This is one of the best tutorials I have seen! Thank you!
@gioralphpusta46763 жыл бұрын
Thankyou sir. I liked the way to teach very detailed and its good that you do recap to make sure every line is clear. Thanks from a student of firstyear college from philippines
@Gustas100 Жыл бұрын
I wanna be a programmer in the future, i just started doing programming, and this really helped, thanks
@jmatoya13 жыл бұрын
Not even the book explains it this simple. Thank you so much
@larrys59042 жыл бұрын
First time I completely understood a tutorial on the first watch. Thank you!
@nookincsmama55453 жыл бұрын
your a life saver, my teacher doesn't teach at all so this really helped
@RaviPushkar Жыл бұрын
Thank you Alex, just because of you I'm going to start Java on my own
@jiyachhabria47953 жыл бұрын
IT WAS EXPLAINED SO WELL, OHMYGOD. THANK YOU THANK YOU THANK YOU! I guess I won't flunk computer science this year after all.
@kookiekookie7693 жыл бұрын
One of the best tutorials I've ever seen thanks Alex you're amazing
@butch21983 жыл бұрын
thanks bro, you saved up my finals, I can now enjoy my christmas break :).
@ErnestoConfused2 жыл бұрын
For the next 24 hours, you are my favorite human of all time.
@jessicaandrade3706 Жыл бұрын
I’ve watched like 20 videos and this is the only one that answered all my questions ur Amazing!!
@jawedsadat97962 ай бұрын
I love the way you teach sir. Thank you!
@FraserFox12 жыл бұрын
I had six epiphanies in the first four minutes of this video, thank you for teaching me in 12 minutes what my prof couldn't teach me in two weeks of classes!
@gyabi77852 жыл бұрын
This was so amazing! I have an exam today and you helped me understand Scanner in detail with a wonderful program. TYSM!!
@tressaortiz20784 жыл бұрын
feel like he would hold me while i cry because i am going to flunk out of school
@syk81513 жыл бұрын
same!!!!!
@hawadrammeh88703 жыл бұрын
girl you got this!!
@dovydasbalciunas5002 Жыл бұрын
Man, you really deserve to have over million subscribers. I like your teachings && I hope in the future I'll become like you! Thanks for the teachings! :)
@graedenbird30203 жыл бұрын
You're an amazing teacher!!!!!
@American_2 Жыл бұрын
You are still helping lives
@darkdrift0r1242 жыл бұрын
You teach better than my lecturer thank you
@kylotupaz87813 жыл бұрын
Thankyou for this Tutorial Alex Lee! This saved me understanding our lesson!!!❤️
@creepycreeper11274 жыл бұрын
Why do we have to get the first word with scan.next() and then get the rest of the line with scan.nextLine()? Is there not some way to just get the whole line from the start? It seems like extra work...
@afifkhaja4 жыл бұрын
I think you can just use nextLine() by itself
@MichaelLee-jm7mo4 жыл бұрын
@@afifkhaja you think? or does it work 100%?
@afifkhaja4 жыл бұрын
@@MichaelLee-jm7mo 100%
@akshaydeogaonkar71204 жыл бұрын
@@MichaelLee-jm7mo It doesn't work... Actually, I got in here because of this issue only...
@jonahosband45343 жыл бұрын
@@akshaydeogaonkar7120 the reason he does that is because nextline() takes unused previous inputs as well as the remainder of a string. The previous method he uses is nextInt() which returns an integer value and when he hits enter the nextLine() method would read that previous enter as the input and not take what you want to input because the nextInt() method does not include the enter which is read as a string so therefore if you just used nextLine in that case it would pick up the enter and return a that before you can enter the code. Sorry if that seemed all over the place. I’m a college student self-learning and that’s how my CS friends explained it to me.
@patrickmyers28885 жыл бұрын
These videos are so clutch, thank you so much! I hope you continue to make these, they are super valuable.
@ravipitta33883 жыл бұрын
Great tutorial, Alex! You've earned yourself another happy camper!!
@AndersJackson2 жыл бұрын
In Eclipse, use Ctrl-Space when you have typed Scan, and you will get expansion and also imported Scanner in one go. I usually have System.out.print() and not println() to print prompt for telling the user what to enter. Scanner should also be closed before the program exits, which could be done with try-resource. try (Scanner in = new Scanner(System.in)) { String name = in.next(): int age = in.nextInt(); } And you should probably use printf() instead of println()/print() when printing out values. As you have way better control of formating the output. I love how you solve the problem with mixing next() and nextLine(); I will take that with me.
@mcjohnbolivar4 жыл бұрын
this is the best tutorial for scanner in java. cool, good job now i know how scanner work in java
@marvinramirez53184 жыл бұрын
Thanks man I am building a big java project through out the semester and your videos are helping
@Ben_in_4k3 жыл бұрын
didnt really understand it but understood it more then when i started but i was trying to add double variable inputs
@deusvidens3 жыл бұрын
thanks sir this helped me very well in my studies
@alaquics51074 жыл бұрын
I’m just a 10 year old kid trying to learn java and now I know a lot!
@mohammadsattar90334 жыл бұрын
Hi Alex ,Thank you for scanner and other tutorial for java. Please make a Tutorial with Array with repeating number, random number, and index number. Thank you for your time.
@Agharnaaa3 жыл бұрын
glad i found this channel, just what i needed! im experiencing hardships in my first year in IT :
@JaspaPanatoi4 ай бұрын
Thank you brother. The content is very very clear and helpful
@neilcuts57713 жыл бұрын
you explained way better than my instructor ..
@aadityarane91084 жыл бұрын
It helped me a lot especially in this pandemic condition
@mujeebhiwadwal35733 жыл бұрын
Thank you Alex this video really help to write my first program as beginner package contitionalstatmentsloop; import java.util.Scanner; public class Scannerexp { public static void main(String[] args) { Scanner scan=new Scanner (System.in); System.out.println("inter your first name"); String name=scan.next(); System.out.println("inter your subject"); String subject=scan.next(); System.out.println("inter your exam score"); int examscore= scan.nextInt(); if (examscore >= 90 ) { System.out.println("your Pass and your grade A"); } else if (examscore>=80) { System.out.println("your pass and your grade is B"); } else { System.out.println("your field "); } System.out.println("Thank you "+" "+name+" "+"yours are subject is = "+ ""+subject+ " "+"your result"+" "+examscore); } }
@josephcarcedo833 жыл бұрын
Hey, Alex, You made my schooling easy, Thank You :>
@Leo-jz3tu3 жыл бұрын
Very good and thorough explanation bro
@IvY-zk1iq4 жыл бұрын
Thanks Alex, love your simplicity. ♥️
@sauravneupane16204 жыл бұрын
Ia m doing MOOC java program and I couldn't understand from text. So, I saw Ur video and did it and it worked, Thank You
@JusticeRicksUWG2 ай бұрын
bro just casually makes my life easier and saves my gpa!
@GoatMan642 жыл бұрын
Bro, thank you so much for this tutorial, I love your vids.
@alitahboub4932 жыл бұрын
THANK YOU YOU MADE THIS SO MUCH EASIER FOR ME!!!
@patelmeshv70673 жыл бұрын
0:26 I loved how the subscribe animation shows only 192 subs but now he has 208k subs.. awesome man..
@smithargaonkar35803 жыл бұрын
You are better than my teacher ❤️😁
@AayushBartaula4 жыл бұрын
Thanks brother for me you work like parttime mentor whom i can visit whenever i want and you are always available
@austinrivers76772 жыл бұрын
Im just here because i thought my strand ICT was just focussed on hardwares but its not Thankfully Alex is here
@ramil80293 жыл бұрын
Thanks a lot for this tutorial! Java Software Solutions by Lewis and Loftus was really confusing when explaining scanners (Chapter 2.6). You made it so much easier to understand!
@mohanish31694 жыл бұрын
Yo Alex, your video helped me solve my problems and your way of teaching is simple. Thanks bud!
@viraltube47332 жыл бұрын
love your tutorial its very clear and easy to understand
@kalayakgosisam88162 жыл бұрын
Man!! You are Great🔥🔥you make everything so easy
@abhijeet42263 жыл бұрын
Bro...U can get whole input line through nextline(), but u have used two functions next() & nextLine() funtions to print a single line quote & it will make confusion...
@leidylu78663 жыл бұрын
Hola there! Thank you so much for all the videos about Java functions, they are so great! You make it fun to understand!!! Very helpful now that I am getting in the crazy world of programming ☺️☺️
@NyctoBlue2 жыл бұрын
thx mr. lee, it was a trouble for me to use
@umarujan91943 жыл бұрын
You got my like and subscribe sir, you just gave me an idea for my Midterm projects. plus you explain it very well! Thanks again sir.
@kristendelaney519611 ай бұрын
Great explanation... could you talk about .close()-ing the scanner?
@sanan4952 жыл бұрын
U are a good boy. I just watched and understood which I was confused a bit.
@chinmayeemishra69683 жыл бұрын
We all need to get his man more subs ASAP
@aayushadhikari84 Жыл бұрын
Dude youre the realest, thank you for the explanation.
@ZachandAllison3 жыл бұрын
these are amazing! thanks for all of your help! I still feel a little lost in Java but your helping so much
@chad4675 жыл бұрын
Thank you bro u are really helpful for me I am going to score nice marks due to you !!
@alexlorenlee5 жыл бұрын
awesome man, i'm glad to hear that :)
@Fangli7993 жыл бұрын
Thank you very much! Alex
@fadzaishechamunorwa78103 жыл бұрын
thanks Alex your videos are so helpful. i dont know how else to show my gratitude, Thank you. i am at better position now. i hope i pass...
@ChamathH26 Жыл бұрын
Couldnt leave without a comment, Amazing 🙌
@wallace31992 жыл бұрын
very well explained! 👍
@cjm1014 жыл бұрын
Alex you are Awesome man!! thank you so much for your videos. i am studying java on a well known site and it is good but i always check youtube videos and you are very consistent on making java Understandable! thanks so much for what you do for us inspiring to get into programming.
@robertp.a99053 жыл бұрын
thank you for existing .
@tylerdurden86513 жыл бұрын
Hey thanks man, this was really helpful!
@euniceannjavier50413 жыл бұрын
Thank you for explaining these things. Your videos helped me a lot! God bless you.
@michaeljarvis83773 жыл бұрын
Nice .concise explaination.
@dwainjohnson6239 Жыл бұрын
this was awesome major thanks
@msjadhav51922 жыл бұрын
I liked this video a lot. If even I understood, then you did amazing
@helloworld28913 жыл бұрын
Thats a very nice tutorial, great job. I want to advice young developers to learn how to put input on a program in order to make it interesting and make their programs more complex. After learning how to put an input in your program i challenge you to try the tutorial i made that is actually a money currency converter