If Else Statement In Java Tutorial #17

  Рет қаралды 340,717

Alex Lee

Alex Lee

Күн бұрын

$1,000 OFF ANY Springboard Tech Bootcamps with my code ALEXLEE. See if you qualify for the JOB GUARANTEE! 👉 bit.ly/3HX970h
For beginners, here is exactly how to use an if else statement in java! ✅
👑Start practicing now with 10 free java programs - alexlorenlee.com/
🌅 Source Code - github.com/ale...
An if statement lets you decided which code to run under a certain condition. If a grade is between 90 and 100 then the letter grade is an A. Else if is just tacked on to specify another condition, like 80 to 90 is B, and so on. An else statement specifies code that's run for anything else! This was a pretty deep example for beginners but I hope it was helpful or gave you a template to start exploring the if else statement in java on your own!
This is a template for how to do multiple java else if statements in java:
if() {
} else if () {
} else if () {
} else {
}
This way of specifying how to run code with if statements can be a little tricky at first, but you'll surely get the hang of it! They aren't too bad :) If you followed along, congrats! You learned-by-doing!
I hope you enjoyed this if else statement in java tutorial! I like to have a nice mix of tutorials and actual projects for you all :)
Do you want to learn how to code from scratch, in Java? Check out my Java Tutorial For Beginners: • Coding For Beginners I...
How are you using java if else statements? -
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

Пікірлер: 410
@alexlorenlee
@alexlorenlee Жыл бұрын
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
@DapperSapper515
@DapperSapper515 Жыл бұрын
I have to say that I have scoured the internet for hours, and hours, and hours. As a completely inept beginner who's an extremely slow learner (slower than most), I have not been able to grasp these concepts and coding in general from anybody. I have read books, scoured articles, and have watched other KZbinrs who people keep recommending to me, and not one of them was as beginner friendly as you were. This video literally broke down what seemed to be a super over complicated concept to a 1st grade level, and I love it! I watched the video multiple times, and can now finally say that I have officially grasped the concept of if/else statements within Java. Thank you so much! I will definitely be subscribing, liking, and sharing! I will also be watching the rest of your tutorials, as I have now watched two-three and really thoroughly love your teaching method! Thank you, man! I seriously CANNOT thank you enough!
@miss_53
@miss_53 6 жыл бұрын
Your videos actually have a lot of quality, you deserve more followers!!
@nikegame2610
@nikegame2610 3 жыл бұрын
Subscribers*
@umaparvathi606
@umaparvathi606 2 жыл бұрын
Nice
@navidhaddadi9695
@navidhaddadi9695 Ай бұрын
6 years later I want to thank you for the way you explain things Im a comp sci student right now and have excelled in java because of these videos so thank you Alex!
@LifeJunkieRaj
@LifeJunkieRaj 2 жыл бұрын
I don't know if you still check these but I'd love that podcast on basic programming terminology, terms, concepts etc. Either way, I've been using this course to help me prepair for an interview, and you've really made everything that my bootcamp professors tried to teach me so much easier to understand. You're a natural born teacher brother. Thank you for all the hard work making these videos.
@sergiupapana121
@sergiupapana121 Жыл бұрын
It is quite incredible how simple and clearly you explain the basics in Java. Glad I found your tutorials !!!!
@eyecatchingreviews6521
@eyecatchingreviews6521 5 жыл бұрын
New sub on board. I am completely lost in my computer science class with java. You are making it real simple and easier to understand. Which you lived in the area so I could use you as a tutor.
@gregoryyang8988
@gregoryyang8988 5 жыл бұрын
Your videos are the closest thing I have to a Java tutorial I can understand.
@jessicaduong6144
@jessicaduong6144 4 жыл бұрын
I'm genuinely struggling in my first CS course and your videos are really helping :') Thank you!!
@tenx3
@tenx3 4 жыл бұрын
These tutorials are getting me through my programming classes lol. Keep up the good work~
@KLead963
@KLead963 3 жыл бұрын
Man you helped me a lot to understand this! I've been studying programming for 8 months, I felt frustrated so many times and I wanted to quit although I really like this field, but because of you I wanna continue! BIG THANKS.
@thecodingchannelph
@thecodingchannelph 3 жыл бұрын
keep on learning bro
@bryanrhodunda4362
@bryanrhodunda4362 6 жыл бұрын
System.out.println("your the man"); great videos
@alexlorenlee
@alexlorenlee 6 жыл бұрын
System.out.println(" Thank you! : ) ");
@aadhibalaji9606
@aadhibalaji9606 4 жыл бұрын
System.out.println(" *you're")
@piAustin
@piAustin 4 жыл бұрын
@@aadhibalaji9606 you forgot the semicolon sir
@iambee5876
@iambee5876 4 жыл бұрын
@@aadhibalaji9606 exception main.java
@scam-
@scam- 4 жыл бұрын
lol
@TheRealCorcra
@TheRealCorcra 4 жыл бұрын
love how I am paying these teachers yet this guy has thought me more in less time for free
@thecodingchannelph
@thecodingchannelph 3 жыл бұрын
keep on learning
@Aashvi_
@Aashvi_ Жыл бұрын
Heyy!! M from India ... Thanks for this short n precise clips ... It helped me lot in my exams.... Thank youuu
@doctorwho0w314
@doctorwho0w314 9 ай бұрын
I dont know if youve done it or not yet but PLEASE start that podcast where you just say what the words mean. It has been my biggest struggle with learning this stuff is all the jargon that gets tossed around with little to no explanation, currently im going through your whole playlist and its the best one ive found. Thank you so much for putting this out there!
@daryanaji9109
@daryanaji9109 4 жыл бұрын
It's about five months that I was struggling with java language but with your tutorials, It's very easy now and I can understand everything, you have to be a lecturer and you deserve more subscriber
@thecodingchannelph
@thecodingchannelph 3 жыл бұрын
keep on learning
@jezekielbaronong5604
@jezekielbaronong5604 3 жыл бұрын
almost 3years of this vid and your presentation skills are still admirable and easy for us to learn your lessons. thanks and happy holidays, alex!
@RicJiang
@RicJiang 3 жыл бұрын
U deserve a billion Subs! I don’t know why so many people love u tubers u sit on a video game controller. Ur actually doing something that’s valuable to the viewers like me!
@IlkayOzdemir-cf4gf
@IlkayOzdemir-cf4gf 4 ай бұрын
I wanna say thank you so much for the time and your passion to teach others. I was also struggling with my Java class and the have 3 class work due next week. I had no idea how to do it. I’m so glad I’ve saw your video now finally I understand Ty Ty Ty
@anandaditya6834
@anandaditya6834 5 жыл бұрын
You just gained a new subscriber. Carry on the good work mate.
@alexlorenlee
@alexlorenlee 5 жыл бұрын
TinBoi welcome aboard :)
@Planzo_
@Planzo_ 2 жыл бұрын
Bro u literally saved me it is 10:00 right now (night) I have a my final computer exam of grade 7 tomorrow and u helped my cover almost all of my doubts ❤❤
@collinsummers3560
@collinsummers3560 2 жыл бұрын
The amount of help you have given me over the past week has been incredible. I cant thank you enough my friend. All the best
@nick1636
@nick1636 6 жыл бұрын
I like these videos even if i already know java :)
@alexlorenlee
@alexlorenlee 6 жыл бұрын
Ikeetjeop Dev thanks that’s good to hear haha
@kebroonabebayehu2559
@kebroonabebayehu2559 2 жыл бұрын
Obviously you're saving alot of lives with your videos! Because I am one of them now too. Thank you Alex!! Your're so good at what you do and please keep doing it!!
@fateme5705
@fateme5705 2 жыл бұрын
I wrote my first line of programming by your helpful and magnificent videos 🙏😊🙏
@vubui2318
@vubui2318 3 жыл бұрын
Your videos are very helpful. I hope you can make more video about Java that can help a lot of students like me to survive during the difficult computer science class.
@arabellamolefi1743
@arabellamolefi1743 Жыл бұрын
I learn more from your videos than I do at school lol💀
@kyler9437
@kyler9437 5 жыл бұрын
I would love a podcast dedicated to programming terms!!! I think that would be super helpful for the whole community!!!
@sheetalcdesai
@sheetalcdesai 5 жыл бұрын
I seriously feel your videos are the best on the net for learning Java
@alexlorenlee
@alexlorenlee 5 жыл бұрын
sheetc desai thank you!
@sheetalcdesai
@sheetalcdesai 5 жыл бұрын
@@alexlorenlee I hope you know that you can really teach :) Please don't stop making these videos
@jonathanphillips5915
@jonathanphillips5915 4 жыл бұрын
You are the best dude! Would definitely appreciate a podcast that clears up programming terms, thanks so much for everything once again Alex! Hope you're having a great day! :)
@manjunathuma2623
@manjunathuma2623 2 жыл бұрын
hi Alex...Love from India...Im Manjunath from Bengaluru(IT hub).I have done mechanical engineering and worked for 3-4years.,Now i planned to change my stream and want to become a "Software Testing Engineer".. When i was trying hard to find a best java guide videos in youtube.,The one i loved the most is yours. Way of your concept explanation, strikes into my mind with ease..Thank you for the videos.,Good work..Love you Buddy.
@Anothersupra
@Anothersupra 4 жыл бұрын
You killed it sir . You're better than all my profs - the people I pay to get taught by......
@thecodingchannelph
@thecodingchannelph 3 жыл бұрын
nice one
@readi-it3906
@readi-it3906 2 жыл бұрын
you know i was programmer 3years ago back in college. and this is the time i get back to learn agin the programming and this video helps me to understand this simple code in 7mins. damn it!
@CaptinQuestion
@CaptinQuestion 5 жыл бұрын
dude thank you, surprised you're not more popular keep it up :)
@javiercardoso4601
@javiercardoso4601 4 жыл бұрын
I am making a project using if and else statements. You saved my life. Thank you so much 💓 💗 💛
@fernandorivera452
@fernandorivera452 4 жыл бұрын
Now I think I know what I'm doing. You are just absolutely an amazing Teacher! Where are your awesome podcast for programming terms?
@thecodingchannelph
@thecodingchannelph 3 жыл бұрын
keep on learning java :)
@RUDAMENTRY
@RUDAMENTRY 4 жыл бұрын
I'd be interested in your podcast even though I'm late in watching this video.
@iad.s.8256
@iad.s.8256 4 жыл бұрын
RUDAMENTRY same!!
@davidsoyebo8952
@davidsoyebo8952 3 жыл бұрын
I would also be interested in the podcast.
@chi_.no0
@chi_.no0 Жыл бұрын
this actually helped me a lot in my computer programming class, thank you
@yan_yan03
@yan_yan03 5 жыл бұрын
Thank you Mr Alex Lee for this video about If statement its really helpful to me to understand the if statements because I dont understand our prof while discussing about Java eclipse and about logical or if statements,if else,if elseif else and nested if statement... Hoping that you have more videos according in java... Thank you for sharing us.. You deserve Mr Lee to have more subcribers.. God Bless Mr Lee
@sapdlo
@sapdlo 5 жыл бұрын
Nice video man Now it's a lot easy to code in java
@koljalavrenchuk307
@koljalavrenchuk307 4 жыл бұрын
This guy is awesome! Best teacher by far
@csemaniac
@csemaniac Жыл бұрын
amazing content!!!! They are just sooo helpful and no bs! Absolutely love your succinct and direct style! Keep it up Alex!!
@rivaille5361
@rivaille5361 4 жыл бұрын
thanks chad you just earned a sub cause i'm learning here more than in school
@thecodingchannelph
@thecodingchannelph 3 жыл бұрын
keep on learning java
@madinaspark26
@madinaspark26 2 ай бұрын
This is really amazing because you made it so clear and easy to understand. Thank you! 🙏
@Geumbi951
@Geumbi951 5 жыл бұрын
I can understand your teachings more than my programming professor lol hahaha
@thecodingchannelph
@thecodingchannelph 3 жыл бұрын
keep on learning java
@mercyenemuo4167
@mercyenemuo4167 2 жыл бұрын
Thank you Alex! I really appreciate. How you covered this topic was easy for me to understand. Yes, I would like if you could have those podcast. It would help in my preparation for my programming class next semester. Thank you!!!
@abdulsuleiman3488
@abdulsuleiman3488 3 жыл бұрын
I love your teaching skill. It is pretty simple to understand. Many thanks Alex
@thecodingchannelph
@thecodingchannelph 3 жыл бұрын
keep learning java and enjoy
@kusanag1820
@kusanag1820 3 жыл бұрын
Thank You Very Much Sir, i've been very late on our lessons because i can't keep up, because i am havig difficulties learning programming by myself, but thanks to your videos i finally understand how if-else statement works with user input.
@vukslijepcevic7228
@vukslijepcevic7228 5 жыл бұрын
MAN THANK YOU YOU'RE THE BEST EVEN THO IT WAS ONLY THE ";" I PUT IN WRONG PLACE YOU HELPED ME A LOT I WISH YOU ALL TH BEST THANK YOU SO MUCH I LOVE YOU
@blaireross4316
@blaireross4316 4 жыл бұрын
You are such an incredible teacher!!!! I am so thankful you came up first on my recommended!!
@adeliodsouza9807
@adeliodsouza9807 5 жыл бұрын
Hey!.......I’m from India......Your channel and videos will probably help me pass the 9th grade. Oh and you just gained a subscriber, can’t wait for your podcast!!!!!
@cagla3360
@cagla3360 2 жыл бұрын
you are out there saving lives rn :) amazing video as always
@genesiskapata
@genesiskapata Жыл бұрын
the podcast would be a great idea. you give great content brother!!! really helps
@CARTOON23
@CARTOON23 2 жыл бұрын
Alex i definitely think you should do the podcast because your videos alone help me a 1000%. So i support you in that and will be punctual every podcast bro
@aarigenalna
@aarigenalna 4 жыл бұрын
I tried this with the float variables just to see if I could make it work with numbers from 0 to 10, was a bit worried about the F that is supposed to go at the end of the number. But it worked! Thank you so much for these videos, they make me want to keep learning instead of scaring me away (in fact, I'd rather experiment with Java than watch netflix lol). Thank you!
@yearn2learn2earn
@yearn2learn2earn 3 жыл бұрын
I just realized that if you type it like this : if(n >=90 && n =90 && n
@thecodingchannelph
@thecodingchannelph 3 жыл бұрын
thats another option or way
@mohanreddy1057
@mohanreddy1057 2 жыл бұрын
East understanding even non techincal students . thank you for doing vedios on java.keep it up alex lee
@stvnk1m
@stvnk1m 3 жыл бұрын
Alex thanks for sharing this. This really helps me to learn JavaScript.
@thecodingchannelph
@thecodingchannelph 3 жыл бұрын
nice
@youthought878
@youthought878 3 жыл бұрын
Switching Majors from political science to comp sci. Never done it before but I get the hang of it quick, really fun working with this stuff honestly. Great video, very well spoken.
@babushaikh6582
@babushaikh6582 4 жыл бұрын
Your vides are very useful for me
@gameavenue7219
@gameavenue7219 2 жыл бұрын
Love u dude!
@rtikulouno
@rtikulouno 3 жыл бұрын
I really like watching your video its easy to understand and not boring. thanks for this!
@Cincity85
@Cincity85 2 жыл бұрын
Hey Alex, I'm new to coding and from watching your videos I am learning alot! Thank you for the videos. Please do make a video for beginners.
@stefan8193
@stefan8193 4 жыл бұрын
Video is very good. Simple words, simple explanation so I understand it immediately. Thanks.
@333KAW
@333KAW 3 жыл бұрын
Yes, a terms podcast would be GREAT!
@LauraJ123
@LauraJ123 2 жыл бұрын
Thank you very much, very clear instructions and easy to folow. My life is saved🙏🙏🙏🙏
@darkfire3194
@darkfire3194 3 жыл бұрын
Thanks to you dude I passed my assignment!!!! Thank you!
@AKumarmx004
@AKumarmx004 4 жыл бұрын
u r a great progarammer man......u have got the solutions of all of my problems......i watch ur every videos to solve my problems.....thku thku
@daddyshady10
@daddyshady10 2 жыл бұрын
Very helpful I need more of your java programs
@MadToasterx5
@MadToasterx5 3 жыл бұрын
Wow thank you your videos are so helpful and the quality of your recordings are amazing god bless you bro
@thecodingchannelph
@thecodingchannelph 3 жыл бұрын
keep on learning
@tomor5845
@tomor5845 4 жыл бұрын
my teacher explained this in an hour I didn't get it u explained it in 7 min I feel like I know eveverything.
@lukewu331
@lukewu331 4 жыл бұрын
Thank you for making things so much clearer for me, it helped me a lot!
@ricksanchez9218
@ricksanchez9218 4 жыл бұрын
Man visual learning is better than podcasts
@invictus3280
@invictus3280 4 жыл бұрын
Thank you very much as tomorrow is my exams and I don't know anything bout java
@bizcodetech
@bizcodetech 4 жыл бұрын
Impressive... You are a good teacher... I like the way you teach.... Thanks for helping us...
@yeyenganda6162
@yeyenganda6162 19 күн бұрын
It's my exam today and this is what we topic and i think i kinda pull it off.... thankszzz make more content plsss im willing to learn❤
@AlumbeRashidi
@AlumbeRashidi 18 күн бұрын
How did you do? I’m taking Java this semester
@FreedomChannel86
@FreedomChannel86 2 жыл бұрын
I immensely thankful for you videos! Thanks a lot! Actually I could not wrap my head around it but now I can.
@MOX-XIEE
@MOX-XIEE 5 жыл бұрын
Did you end up doing the podcast? I would love to listen!
@urmibhanot6961
@urmibhanot6961 2 жыл бұрын
You are very good and easy to understand to learn. Thank you so much.
@george8379
@george8379 5 жыл бұрын
This was helpful thank you!!!
@thecodingchannelph
@thecodingchannelph 3 жыл бұрын
keepon learning
@laurenjamesh.miguel1887
@laurenjamesh.miguel1887 Жыл бұрын
thank you bro, I got it now, it's easier to understand if, if else and else
@dantay5905
@dantay5905 4 жыл бұрын
Hey Alex, I really appreciate all your lessons. They are very articulated and simplified which I liked them to always view to learn. Here is one question I got from my instructor as an exercise, if you could simplify it would be great. create nested if-statements that, once the initial color has been chosen, asks the user to choose between shades of the initial color. Example output: Would you like a RED car or a BLUE car? blue Would you like a Baby or a Royal blue color car? royal You chose a royal blue car!
@siandanielloreto7789
@siandanielloreto7789 2 жыл бұрын
thank you so much sir for making this tutorial it helps me a lot for assignments
@JM-lr7br
@JM-lr7br 2 жыл бұрын
hey man I know I'm late to this but seriously this is exactly what I needed thank you man.
@yt_bharat
@yt_bharat 4 жыл бұрын
Best example. And such positive attitude in teaching. Thanks👌👌
@davidvanheesch6157
@davidvanheesch6157 4 жыл бұрын
Love the vids!! Helping me so much. Keep it going man.
@mohammadbilgrami
@mohammadbilgrami Жыл бұрын
Love from India brother, starting with your playlist, wish me luck ❤
@kr1tical41
@kr1tical41 5 жыл бұрын
Bro, your videos have saved my grades! :D thanks for the help!
@vincentsviolin
@vincentsviolin 4 жыл бұрын
I was watching this video during my midterm and I passed LMAO. Thanks. =)
@toaiamituanai7036
@toaiamituanai7036 2 жыл бұрын
Hi Alex I follow you on your tutorial every day.
@777ikaro
@777ikaro 4 жыл бұрын
This tiny keyboard and its sound is really satisfying xD
@thecodingchannelph
@thecodingchannelph 3 жыл бұрын
nice one
@maryp1131
@maryp1131 Жыл бұрын
You are the best instructor! I wish you taught in University!
@abdulraihananjalin6714
@abdulraihananjalin6714 4 жыл бұрын
Thank you so much Alex, your video tutorial is so helpful and inspiring. More power and God bless you 💞😍😇
@thecodingchannelph
@thecodingchannelph 3 жыл бұрын
keep on learning bro
@simonjoseph1447
@simonjoseph1447 5 жыл бұрын
Keep posting bro. We need you.
@thecodingchannelph
@thecodingchannelph 3 жыл бұрын
keep on learning
@nestwave_tech
@nestwave_tech 3 жыл бұрын
You have the best videos ever!
@thecodingchannelph
@thecodingchannelph 3 жыл бұрын
keep on learning
@alexperalta5631
@alexperalta5631 2 жыл бұрын
Thank you for this video, i understand you better. This is need in my course Computer Science, im still beginner.
@Otto93389
@Otto93389 4 жыл бұрын
Alex you are really cool!!!! it is very easy understanding. Keep in touch!
@yehonatanlax35
@yehonatanlax35 3 жыл бұрын
You explain the language very well! thank you!
@leonard4928
@leonard4928 2 жыл бұрын
You explain this better than my professors
@vipensharma2348
@vipensharma2348 4 жыл бұрын
Thankyou 💐💐😘😘🌟🌟so much 👌👌..... only Your vedios help me to score full marks in practical💖💖💝💝tnx alot...!!
Java Program For Beginners - Magic 8 Ball #18
15:04
Alex Lee
Рет қаралды 39 М.
While Loop Java Tutorial #37
8:51
Alex Lee
Рет қаралды 326 М.
coco在求救? #小丑 #天使 #shorts
00:29
好人小丑
Рет қаралды 120 МЛН
Java if statements 🚧【6 minutes】
6:12
Bro Code
Рет қаралды 183 М.
Return Statement in Java #27
14:38
Alex Lee
Рет қаралды 286 М.
Switch Case in Java #35
9:30
Alex Lee
Рет қаралды 209 М.
JavaScript if else (tutorial)
6:22
Programming with Mosh
Рет қаралды 358 М.
Learn Java in 14 Minutes (seriously)
14:00
Alex Lee
Рет қаралды 5 МЛН
Writing Code That Runs FAST on a GPU
15:32
Low Level
Рет қаралды 586 М.
Java nested loops ➿
6:06
Bro Code
Рет қаралды 98 М.
Arrays In Java Tutorial #10
9:26
Alex Lee
Рет қаралды 477 М.
If Else Statements in Python // Python RIGHT NOW!! // EP 4
14:19
NetworkChuck
Рет қаралды 441 М.