Java Programming Tutorial 19 - If, Else If, Else

Поділитися
Вставка
  • Опубліковано 11 гру 2024

КОМЕНТАРІ • 56

  • @codebreakthrough
    @codebreakthrough  5 років тому +6

    Learn Javascript - bit.ly/JavaScriptPlaylist
    Learn Java - bit.ly/JavaPlaylist
    Learn C# - bit.ly/CSharpTutorialsPlaylist
    Learn C++ - bit.ly/CPlusPlusPlaylist
    Learn C - bit.ly/CTutorialsPlaylist

    • @DrWho2008t101
      @DrWho2008t101 4 роки тому

      Thank you for the video, great work. Appreciate your work.

    • @marco7838
      @marco7838 2 роки тому

      At 6:21 is says you got the 2nd password but has still returned the "false" back. Is it supposed to be like this and if not how do we change to ensure its correct and returns true like the first did?

  • @rabahakrour3688
    @rabahakrour3688 5 років тому +57

    and I what i love more with caleb is that he always finds a different transition to introduce pramp LOL just amazing

  • @doggathewater
    @doggathewater 5 років тому +2

    I probably have seen this kind of same thing in other languages, but you just made me realize that being able to attach those methods on top of each other to a string is insanely powerful. Thanks a million!

  • @toddgraves4770
    @toddgraves4770 5 років тому +8

    NICE sneaking in with the method chaining in the last minute of the video! I've been having issues with that but within 60 seconds you made it simple to understand! You're awesome Caleb!

  • @rittenbrake1613
    @rittenbrake1613 4 роки тому +14

    I love how you shift the topic to Pramp naturally 🤣🤣🤣👍🏻

  • @Sam-ql6jt
    @Sam-ql6jt 5 років тому +1

    Hey Caleb, wouldn't you just be able to go with equalsIgnoreCase at 6:30, rather than having to set everything to lower case?

  • @simopelle
    @simopelle 3 роки тому +1

    7:01 you can use *equalsIgnoreCase()* instead of this mess

  • @hihellookay123
    @hihellookay123 10 місяців тому

    Day 2 🙌 Done 19 out of 100, 81 more to go let's go! 🔥

  • @legendarytwister3656
    @legendarytwister3656 4 роки тому

    you did it so simple, i remembered everything

  • @rittenbrake1613
    @rittenbrake1613 4 роки тому +1

    wow , the Case changing ones on the password is very useful

  • @marco7838
    @marco7838 2 роки тому

    At 6:21 is says you got the 2nd password but has still returned the "false" back. Is it supposed to be like this and if not how do we change to ensure its correct and returns true like the first did?

  • @SkeletteNeo
    @SkeletteNeo 4 роки тому +8

    YandereDev be like:
    else if
    else if
    else if
    else if
    else if

  • @SSMLivingPictures
    @SSMLivingPictures 4 роки тому +4

    At this point I look forward to his different Pramp lead-ins 😅

  • @soseikiharagatatsu7859
    @soseikiharagatatsu7859 3 роки тому

    Thanks a lot man because of this I can pass subject

  • @Faith-Hope-Love-Eternity
    @Faith-Hope-Love-Eternity 4 роки тому

    Hi Caleb, you explain lots of things in detail, thank you so much!

  • @samantharamirez7125
    @samantharamirez7125 3 роки тому

    THANK YOU FOR THIS FINALLY IT MAKES SENSE

    • @marco7838
      @marco7838 2 роки тому

      At 6:21 is says you got the 2nd password but has still returned the "false" back. Is it supposed to be like this and if not how do we change to ensure its correct and returns true like the first did?

  • @derinzengin7736
    @derinzengin7736 4 роки тому

    How do we do " y=Ix-1I "for if else statement?I couldnt find many people use Math.abs code but I wonder how about work if else statement ?

  • @purgerBizza
    @purgerBizza 5 років тому +3

    aaand of course, the java FX guy is here.

  • @DrWho2008t101
    @DrWho2008t101 4 роки тому

    thanks for the video.

  • @haroldgregconor1513
    @haroldgregconor1513 3 роки тому +1

    Does anyone see that false? On the 2nd password?

    • @marco7838
      @marco7838 2 роки тому

      At 6:21 is says you got the 2nd password but has still returned the "false" back. Is it supposed to be like this and if not how do we change to ensure its correct and returns true like the first did?

  • @jayeshmehta3067
    @jayeshmehta3067 6 років тому

    where is the oops Concept? Please upload that

  • @grownmystical8796
    @grownmystical8796 4 роки тому

    I wanted to learn about else if, else, and if statements instead I learned about other commands that I'm not used to looking at. Great. -_-

  • @DC-kt3kk
    @DC-kt3kk 3 роки тому

    Hey bro i have the following problem : no matter what i do i cant use else it says error expecting me to put ; after the else (example) if i put {
    } here as i do it brings a red underline between else and the {

    • @Patrick-cz3pb
      @Patrick-cz3pb 3 роки тому

      It should have an expression inside the else like this.
      else{
      System.out.println("your text here");
      }

    • @Patrick-cz3pb
      @Patrick-cz3pb 3 роки тому

      Or probably you put an extra "{ }"

    • @marco7838
      @marco7838 2 роки тому

      @@Patrick-cz3pb At 6:21 is says you got the 2nd password but has still returned the "false" back. Is it supposed to be like this and if not how do we change to ensure its correct and returns true like the first did?

  • @Lutscherstange1
    @Lutscherstange1 5 років тому +1

    oh man, when I will switch workplaces sooner or later, prem is definitly burned in my head :D

    • @Lutscherstange1
      @Lutscherstange1 5 років тому

      import java.util.Scanner;
      public class MyClassOne {
      public static void main (String[] args) { // method
      e
      System.out.println("What is your name?!");

      Scanner scanner = new Scanner(System.in);
      String name = scanner.nextLine();

      if(name.contentEquals("Bene"))
      {
      System.out.println("Welcome my boi");
      }else if(name.contentEquals("Daniel"))
      {
      System.out.println("be gone peasant");
      }else
      {
      System.out.println("How do you use the three sea shells?");
      }
      }
      }
      I was almost always one of the guys who liked if statements so much more :D

  • @StruckByLightning
    @StruckByLightning 4 роки тому +1

    when i type else there an error.

    • @luceroanimations5913
      @luceroanimations5913 3 роки тому

      me too

    • @StruckByLightning
      @StruckByLightning 3 роки тому

      @@luceroanimations5913 i fixed it lemme tell u, so my issue was with the "}" symbol, i didnt put it in the correct place

  • @pineapple8693
    @pineapple8693 4 роки тому

    When I put the else in, it gives me an error? Why is this, I have the exact same code

    • @billrogers510
      @billrogers510 4 роки тому

      Go to the problems tab at the bottom. You most likely have an extra curly brace at the bottom of your program

    • @Arjun-il1om
      @Arjun-il1om 4 роки тому

      There is also a possibility that you have a semicolon after the if statement.

  • @andymouse
    @andymouse 6 років тому +1

    IF ELSE, I now understand as it works the same in C++ as it does, I would imagine in all computer languages. but what the hell is an "Apple Crisp" ? Is just thinly sliced apples deep fried and then seasoned with salt , like our potato crisp's ?

    • @codebreakthrough
      @codebreakthrough  6 років тому +2

      Hahahah it is baked apple slices with cinnamon, sugar, and oats.

    • @siloricity
      @siloricity 5 років тому

      @@codebreakthrough i have those in school

  • @byronwooten1303
    @byronwooten1303 3 роки тому

    mango bloods

  • @FEMS738
    @FEMS738 5 років тому +1

    Hey guys, i'm currently using VISUAL STUDIO for Java developing, and i found this out:
    if (password.equals(guess.toLowerCase())){
    is the exact thing as using
    if(password.ToLowerCase().equals(guess.toLowerCase())){
    Try that out, for me it works, and it makes it easier to use, since you're saving to type one method and the result is the same.

    • @Archeryring
      @Archeryring 5 років тому

      It doesn't work in Eclipse

    • @sleutime
      @sleutime 5 років тому

      Well, theoretically you could do that its just harder to read the syntax, if you were getting interviewed for a job they would probably rip your eyes out.

  • @SkyRocket159
    @SkyRocket159 5 років тому

    it's
    if () {
    } else {
    }
    all the other ways are wrong

  • @AlbondigaDancing
    @AlbondigaDancing 2 роки тому

    to be honest, I will never use pramp

  • @michaelaalquino7878
    @michaelaalquino7878 4 роки тому

    Please show your dog sometimes haha

  • @taniksmlgsniper7178
    @taniksmlgsniper7178 3 роки тому +1

    Please keep sending this to yanderedev.

  • @connorscoggins6460
    @connorscoggins6460 4 роки тому

    apple crips

  • @jaybergonia4861
    @jaybergonia4861 5 років тому

    Sorry caleb the sponsor ad is 40seconds long 😂

  • @jaybergonia4861
    @jaybergonia4861 5 років тому

    Do Java FX i have my own project for that and for myself only
    Sorry for spamming
    I just admire your way of explaining things
    It just like from lynda dot com
    Im from intro from 7 in the morning to now is 10:20
    Please

  • @frgwyn3760
    @frgwyn3760 4 роки тому

    Yandere dev

  • @jess6241
    @jess6241 3 роки тому

    apple crips