Boolean Java Tutorial #15

Поделиться
HTML-код
  • Опубликовано: 26 ноя 2024

Комментарии • 247

  • @alexlorenlee
    @alexlorenlee  Год назад +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

  • @sb5338
    @sb5338 5 лет назад +168

    Sidenote- the word boolean is actually named after the mathematician George Boole, one of the random facts I for some reason remember lol. Thanks for the videos!

  • @yursk12
    @yursk12 5 лет назад +229

    Dont stop makin these vids ur helping me understand so much lol

    • @alexlorenlee
      @alexlorenlee  5 лет назад +23

      Dylan Smith awesome thanks! I’m glad I’m helpful!

    • @leif1075
      @leif1075 4 года назад

      @@alexlorenlee question is it necessary to say all door count ewuals false at top and then true after the passed all doors ar the bottom..isn't that kind ofna contradiction that might confuse Java? Can't you just keep the true boolean at the bottom? Thanks very much.

    • @INFINITY-yk3hw
      @INFINITY-yk3hw 4 года назад

      @@leif1075 do u know the answer yet? I might help if u don't.

    • @OzozGaming
      @OzozGaming 4 года назад

      How would you do a java code for balls in a bag and each time you minus 2 and then it predicts the last ball colour either black or white???

    • @OzozGaming
      @OzozGaming 4 года назад

      @@alexlorenleeHi Alex,
      How would you do a java code for balls in a bag and each time you minus 2 and then it predicts the last ball colour either black or white???

  • @DeadAlcoholZombie
    @DeadAlcoholZombie 4 года назад +13

    I can't get over that keyboard. So nostalgic.

  • @laylykalfaian8189
    @laylykalfaian8189 3 года назад +44

    You are such an amazing teacher omg, I don't know if you get paid for this but you definitely deserve to because you are some talent and you are such a great teacher thank you so much!! You make these so much more entertaining to watch also! ❤️

  • @stephenadrian3389
    @stephenadrian3389 4 года назад +22

    The best Java tutorial I found on youtube!! Its super entertaining to watch and learn, and I also love your screen layouts of the code, shortcuts, etc. Thankyou for making these videos! I hope you keep making these type of videos in the future.

  • @davidtorres2375
    @davidtorres2375 5 лет назад +59

    I've been watching a few of your videos wondering why they feel so fresh and easy to understand. The screen setup you got going is pretty similar to how gamers make vids on youtube. The music is a good touch! Loving your videos man. Like I said keep it going champ!

  • @Flaschenhals02
    @Flaschenhals02 2 года назад +2

    Hey Alex,
    I'm an IB student, I never log in into RUclips or subscribe or anything. But your videos help me out a lot.
    Thanks, please continue your great work.
    You're one of the few people here on YT, who seriously start from zero for us. So nice, no BS direct to the point! Thanks. +1 subscriber

  • @pipelinedesign434
    @pipelinedesign434 2 года назад +2

    Alex, I never log into youtube, but in this case, I had to tell you what a great series of videos these are. I'm going through a college Java class that makes zero sense. The instructor is horrible. You my friend have a gift for teaching, You make everything very easy to understand. I will be signing up for your full courses after going through the videos here. Awesome job, please, continue to teach, you have a gift. Thanks for making these for us, and thanks for helping me to get through my college class.

  • @laurazimka8426
    @laurazimka8426 3 года назад +5

    This Tutorial was super helpful and I can finally see some logic behind the basic commands and how they interact. Thank you Alex! Big time!

  • @sebastiansilva6132
    @sebastiansilva6132 4 года назад +1

    Dude, this is a HUGE grain of sand to community knowledge, and i mean the whole serie. Thank you.

  • @Remindw
    @Remindw 2 года назад

    Man thanks so much, i was confused before but when i watched your explanation that when boolean is false program does not read the "dead code" , was so enlightening! Again thanks so much.

  • @maryp1131
    @maryp1131 Год назад

    I don`t know how I would have studied without your videos. Thank you!

  • @av2678
    @av2678 4 года назад +4

    Why watching your videos and learning feels so refreshing? :)

  • @valentinocaceres6954
    @valentinocaceres6954 2 года назад

    oh man i can't thank you enough, i have an exam in a few days and you helped me to understand the boolean

  • @maevelerinasumbrado2837
    @maevelerinasumbrado2837 3 года назад +1

    Your contents are more helpful than our class. I can understand easily. Thankyou for creating this channel

  • @liloruf2838
    @liloruf2838 4 года назад +4

    Oh my god! Thank you SO MUCH!! you really safe me! You actually make this fun, such a gift.

  • @ninjacat1653
    @ninjacat1653 5 лет назад +3

    keep it up bro, your doing great at tutorials in java.

  • @alstechtoday
    @alstechtoday Год назад

    Just watched 3 minutes of the video and got what I needed! Thanks man!

  • @zsener55
    @zsener55 Год назад +1

    Thank you Alex👏☺️

  • @kurittsuchan950
    @kurittsuchan950 4 года назад +1

    I wish I had discovered you sooner for my ComProg 1...
    Thank you for making these videos! ❤️

  • @phantomgaming1154
    @phantomgaming1154 2 года назад

    Bro you make me feel like java is a bit more easy
    Thank you man

  • @forrestg5182
    @forrestg5182 3 года назад +1

    Thank you brotha!! Helped me understand this so simply and clearly ! I appreciate it

  • @mohittyagi6694
    @mohittyagi6694 5 лет назад

    your tutorials making it a lot easy to learn java now. Thanks man

  • @og_gaming2323
    @og_gaming2323 4 года назад

    Thank you bro I had more knowledge in this video more than 99999999999999999999999 hours of online class

  • @Furiac.
    @Furiac. 4 года назад

    this is the 2nd java video ive seen of yours and both have been incredibly helpful

  • @alisaholainen6334
    @alisaholainen6334 4 года назад +2

    Very interesting, indeed. I'll do kind of same but with beers. Thank you!

  • @adrmad8849
    @adrmad8849 2 года назад

    Thanks, you helped me to visualize idea of condition changing boolean value, its what I needed for exam.
    Keep recording m8!🔥

  • @HarshitShankarlalWadhwa
    @HarshitShankarlalWadhwa 3 года назад +1

    Congratualions on new sub.

  • @micogacutan8910
    @micogacutan8910 4 года назад +1

    new subscriber here. I find your videos very easy to understand 😭💖 Pls continue making videos like this.

  • @kr1tical41
    @kr1tical41 4 года назад +1

    Appreciate it man! You’re so much better than my lecturer 😂

  • @comcfi
    @comcfi 4 года назад

    Congratualions you won the program!

  • @israelfilipe8812
    @israelfilipe8812 5 лет назад +2

    Thank you so much, I just start to studying Java now and you really helped me, appreciate.

    • @bewatter3014
      @bewatter3014 3 года назад

      hey Filipe, i have a question and i hope u can help me with that...
      why does he open up a new if statement for passedAllDoors? 11:30
      couldnt we just System.our.println("... congrats...) before because door count is = 3 and passedAllDoors did change to true
      or is it just a step to make sure and have a better understanding?

    • @practicalcucumber1395
      @practicalcucumber1395 3 года назад +1

      @@bewatter3014 you're right but its just a step to have a better understanding

    • @bewatter3014
      @bewatter3014 3 года назад

      @@practicalcucumber1395 thank you =)

  • @JulesMauch
    @JulesMauch Год назад +1

    Amazing tutorials. I have to learn Java and some follow-up language for work and this helps me a lot.
    I found out the word isnt made up ( 1:35 ) but is the last name of the mathematician that invented that type of math in the 19 century

  • @Augstava
    @Augstava 3 года назад

    Thank you for being so awesome Alex! You're helping me big time in understanding / practicing java!

  • @akashpatel5132
    @akashpatel5132 3 года назад

    Your explanation helped me to understand Boolean Alex good work bro

  • @jendekachanzuw786
    @jendekachanzuw786 Год назад

    You are the best ! Just discovered you yesterday, thanks 🙏 sooo much

  • @r4reviews334
    @r4reviews334 3 года назад

    Thank you so much brother I just worked on the program and learned a lot from you!

  • @td1796
    @td1796 3 года назад

    You make coding look so easy!!

  • @Jonq360
    @Jonq360 4 года назад +1

    I don't know anything about coding, but now I know boolean.

  • @BlueDemkon
    @BlueDemkon 3 года назад

    You are a good teacher I wish I could take an online class from u

  • @adamstratton683
    @adamstratton683 4 года назад

    Way better then my prof sheesh ur a life saver

  • @sjmorais1850
    @sjmorais1850 3 года назад +2

    seriously great explanation....where were u in the past 2 years :(

    • @julianreyesespinal3621
      @julianreyesespinal3621 3 года назад

      Hello I see your the most recent comment and I am wondering if you are experienced enough to help with this problem I have

  • @divyanshrajput5746
    @divyanshrajput5746 4 года назад

    Hey there!!
    I enjoyed the video very much and helped me in my computer classes. I am also a bad speller 😅😅. But programing with Boolean is fun. Thankyou for the video.

  • @ImanTorcamani
    @ImanTorcamani Год назад

    God you’re the best teacher ever

  • @yusufrifqi5006
    @yusufrifqi5006 3 года назад +1

    public class Latihan2 {
    public static void main(String[] args) {
    boolean status = true;
    System.out.println("loe boleh ikut ujian?" + status);
    //kode program berikut error,sebutkan alasan nya!
    boolean b1 = 0;
    boolean b2 = "true";
    }

    }
    the code is error,where the error,and why its error?

  • @yeliza2350
    @yeliza2350 2 года назад +1

    5 januaray 2022 thank alex

  • @musicforeveryone2024
    @musicforeveryone2024 3 года назад

    your java videos are AWESOME

  • @latedeveloper7836
    @latedeveloper7836 4 года назад

    7:10 IDKW I didn't see it before but that explanation helped me massively. Thanks again.

  • @likithshetty4716
    @likithshetty4716 4 года назад

    Bro really thanks for helping like its really easy understand things while you are explaining !!!
    If you start making videos on other programming languages as well then it would be great

  • @InsaneDeath13
    @InsaneDeath13 5 лет назад +1

    Fantastic video my man.

  • @polar5903
    @polar5903 5 лет назад +5

    Congrats on getting 1k subs.
    I am 2 of them ;)

    • @alexlorenlee
      @alexlorenlee  5 лет назад

      Swift F0X thank you!

    • @polar5903
      @polar5903 5 лет назад

      though you deserve much more...

    • @polar5903
      @polar5903 5 лет назад

      Did you spel congrajulashions rongly on purpose? (in 11:08)
      Like how I did just now. ;)

    • @alexlorenlee
      @alexlorenlee  5 лет назад

      Swift F0X no that was an accident

    • @polar5903
      @polar5903 5 лет назад

      Incase you do,
      Please don't take it as offense I meant it as a joke. ;)

  • @theartlegend3772
    @theartlegend3772 4 года назад +5

    My Mom: you failed your English test.
    Me: unpossible!!

  • @pkcuenca
    @pkcuenca 5 лет назад +19

    The Spelling was Congratulations

  • @arv_is
    @arv_is 3 года назад +1

    So whats the advantage of boolean against using int? A = 1; or A = 2; and if , else statements.

  • @MaximumJoy
    @MaximumJoy 5 лет назад +4

    Did you add the live shortcuts in post production? I'm just wondering if maybe you automated it, so that you have a keylogger running and it can identify when you for instance type two keys at the same time. Just trying to think like a programmer!

    • @alexlorenlee
      @alexlorenlee  5 лет назад +5

      Maximum Joy that’s a great idea :) they were added manually by me in post production, which took a little longer to edit in

  • @venurabulathsinhala5078
    @venurabulathsinhala5078 3 года назад

    man your videos help me soo much

  • @Josip9888
    @Josip9888 5 лет назад

    Brilliant Alex! Thank you!

  • @enkeegch
    @enkeegch 3 года назад +1

    Loving your videos ❤❤ can you teach us about substrings in java please

  • @av2678
    @av2678 4 года назад +1

    You deserve more subs than int limit

  • @Nikita-vq2mo
    @Nikita-vq2mo 4 года назад

    Simple and great video, thank you!

  • @islamibrahim3844
    @islamibrahim3844 4 года назад +1

    that was helpful thanks alex

  • @austinlattimore8000
    @austinlattimore8000 4 года назад

    Great videos really easy to follow along I actually got into java back when RSbot was popular for runescape.

  • @jesseniaalvarenga9468
    @jesseniaalvarenga9468 Год назад

    Alex: "I can't spell. I'm the worst speller"
    Then proceeds to spell congratulations as congratualions 😆
    The little things like these are what help me enjoy watching the videos

  • @theindecisivegamer5036
    @theindecisivegamer5036 3 года назад +1

    thanks man if the music was little lower video would be better

  • @aranzainethmendozagalan9331
    @aranzainethmendozagalan9331 4 года назад

    THANK YOU SO MUCH! you are better than my professor lol I keep watching your videos after his class
    ps. I'm a bad speller too

  • @Alfredornbrp
    @Alfredornbrp 2 года назад

    thank from brazil here good job !

  • @hirankanchana2403
    @hirankanchana2403 4 года назад

    What a tutorial ❤️Thank you

  • @שהרבכהן
    @שהרבכהן 5 лет назад +13

    just subscribed! if I may make a suggestion, I recommend not having any background music. your voice is just fine, and the music is distracting/annoying. Cheers!

    • @alexlorenlee
      @alexlorenlee  5 лет назад +6

      Send Shekels thanks! There’s no background music in my newer videos now

  • @nortyone2886
    @nortyone2886 2 года назад +1

    Couldn't you just write DoorCount++?

  • @redMaple_QC
    @redMaple_QC 3 года назад

    You don't need the last if. You can just System.out after the last true statement.

  • @rabinotieno6553
    @rabinotieno6553 3 года назад

    thanks for the knowledge brother

  • @ahmedagag9396
    @ahmedagag9396 4 года назад

    You're awesome man I really appreciate you

  • @yursk12
    @yursk12 5 лет назад +4

    Great vid

  • @Suryakant-i3c
    @Suryakant-i3c 5 месяцев назад

    AlexLee
    Superb Explanation Brother ❤👍🏻
    😞Just do Start again Making videos

  • @rohishmhrj
    @rohishmhrj 4 года назад

    u r a great teacher

  • @DerockDerk
    @DerockDerk 4 года назад

    Thanks for the great video! 😁

  • @HER-MAJESTY111
    @HER-MAJESTY111 7 месяцев назад

    Hi, your video has been super helpful i however want to know how to use the boolean to print out "Sorry you missed a door ".

  • @奧莉媽媽
    @奧莉媽媽 3 года назад +1

    Very easy to understand for beginners, I can't believe one day I'm binging watch Java Tutorial. Thank U Alex, you really did a great job!

  • @garbayoo
    @garbayoo 4 года назад +1

    Thank you!!

  • @Wend1rellA
    @Wend1rellA 4 года назад

    can you make a tutorial about switch case? thankyou! btw i really like how you explain eveything about java! thankyouuu

  • @vicloop827
    @vicloop827 Год назад

    Alex, first of all. You are priceless my man. Thank you so much for these tutorials, we would be lost without you. Thanks for the great teaching. A small suggestion - Kill the music in these videos. TBH it kinda makes you lose concentration on what you are lecturing about. Other than that.....wow!

  • @kanagarajs1191
    @kanagarajs1191 3 года назад

    I am start learning, this is clear.. Thanks make more videos

  • @NeedToDev
    @NeedToDev 3 года назад

    bro, i feel like im learning more here than im actually learning in school lol

  • @yeliza2350
    @yeliza2350 2 года назад +1

    5 january 2022 thnkssss alex🤾

  • @NellieNotion
    @NellieNotion Год назад

    I think of it as a checkbox

  • @hatimaldos926
    @hatimaldos926 2 года назад

    Thanks Alex.

  • @mohittyagi6694
    @mohittyagi6694 5 лет назад

    you are like a JAVA HERO

  • @AZRAOCAK-k6u
    @AZRAOCAK-k6u 4 дня назад

    congratulations😄

  • @Berna-un5wh
    @Berna-un5wh 4 года назад

    Thanks for shedding light on the boolean concept Alex. In what case do you use the % and == with boolean?

    • @Berna-un5wh
      @Berna-un5wh 4 года назад

      Sorry. I am referring to boolean in Java

  • @digvijaysingh325
    @digvijaysingh325 2 года назад

    loved the video brother

  • @alisaholainen6334
    @alisaholainen6334 4 года назад

    This is a very good lesson-)

  • @dinhomhm
    @dinhomhm 4 года назад +1

    boolean passedDoor = true;
    boolean missedDoor = false;
    boolean passedAllDoors = false;
    int doorCount = 0;

    if (missedDoor) {
    System.out.println("We passed the first Door");
    doorCount = doorCount + 1;
    }

    if (passedDoor) {
    System.out.println("We passed the second Door");
    doorCount = doorCount + 1;
    }

    if (passedDoor) {
    System.out.println("We passed the third Door");
    doorCount = doorCount + 1;
    }

    if (doorCount == 3) {
    passedAllDoors = true;
    }

    if (passedAllDoors) {
    System.out.println("Congats, you passed all the doors successfully");
    }

    if (passedAllDoors != true) {
    System.out.println("Sorry, you missed at least one door");
    }

  • @Soabac
    @Soabac 2 года назад

    0:05 "in this video i'm gonna show you how to use bullying in java!"

  • @odanielbotke
    @odanielbotke 5 месяцев назад

    Your dideos ar the best, thanks. What is the name of your keyboard?

  • @gogbone
    @gogbone 4 года назад

    subbed because of the congratualions

  • @topboykai_
    @topboykai_ 3 года назад

    I love congratualions!

  • @dannymoonjely3613
    @dannymoonjely3613 4 года назад

    Alex first of all great videos I personally loved them,each and every one of them, I would like to ask something though, I would like to know how to do bubble sort and linear search programming, so I would love to see that programming.

  • @aydenrl
    @aydenrl 4 года назад +1

    What epic song is in the background?

  • @marcuspaz4306
    @marcuspaz4306 2 года назад

    off topic, but what keyboard are u using? appreciate all the help man.