Java Scanner Class Methods - Reading Input from the Keyboard - next nextInt nextDouble char

แชร์
ฝัง
  • เผยแพร่เมื่อ 21 ธ.ค. 2024

ความคิดเห็น • 28

  • @Appficial
    @Appficial  5 ปีที่แล้ว +4

    Please SUBSCRIBE! More programming videos coming soon! ✌️

  • @aguynamedshelly
    @aguynamedshelly 6 ปีที่แล้ว +18

    You had me at "You love the D."
    In seriousness, thanks for helping me get my noodle around the next method.

    • @Appficial
      @Appficial  6 ปีที่แล้ว

      Haha, no problem. Glad the video helped

  • @servern4
    @servern4 5 ปีที่แล้ว +4

    Your humor made my night. Thank You!

    • @Appficial
      @Appficial  5 ปีที่แล้ว +1

      Lol thanks

  • @iliandaskalov1789
    @iliandaskalov1789 4 ปีที่แล้ว +5

    That joke at the end...superb *slow clap*

  • @themysteriousman2968
    @themysteriousman2968 5 ปีที่แล้ว +2

    Thanks for helping me.. In my practical.. God bless u

    • @Appficial
      @Appficial  5 ปีที่แล้ว

      You're welcome!

  • @joelduran9344
    @joelduran9344 4 ปีที่แล้ว

    Hey I have a question so I'm trying to create a different scanner method where I ask the user what their major is
    I imported the java.util.Scanner I did "what is your name?" and "How old are you" I then wanted to ask "What is your major?" So I was going to use the
    "String major =keyboard.nextLine();" but it completely skips that part... What am I doing wrong??
    The funny thing is that when I use the method nextLine on the "What is your name" it works :/

    • @Appficial
      @Appficial  4 ปีที่แล้ว +1

      Add this statement where the issue is happening to escape the carriage return causing the issue: keyboard.printLine();

    • @joelduran9344
      @joelduran9344 4 ปีที่แล้ว

      @@Appficial I get "The method printLine is undefined for the Type Scanner"
      when I did:
      String major = keyboard.printLine();
      I also thought of doing this:
      keyboard.printLine(); and got the same error

  • @checker_boarder
    @checker_boarder 4 ปีที่แล้ว +1

    Haha this is exactly the kind of programming help I was looking for

  • @mikesalaru361
    @mikesalaru361 3 ปีที่แล้ว +1

    +1 for Humor, loved it !

  • @hikikomori9387
    @hikikomori9387 6 ปีที่แล้ว +2

    you are great ...thanks for helping me out

    • @Appficial
      @Appficial  6 ปีที่แล้ว

      Thanks, you're welcome!

  • @dhruvpawar9385
    @dhruvpawar9385 4 ปีที่แล้ว +3

    DONALD TRUMP WANTS TO KNOW YOUR LOCATION🤣🤣

  • @zemu5488
    @zemu5488 3 ปีที่แล้ว +1

    Hmm i wonder what does the letter d mean 🤔

  • @moftahhussen4578
    @moftahhussen4578 4 ปีที่แล้ว +1

    2:25
    LOL i jsut thought the ide itself hates trump N doesn't want to print out his name

    • @Appficial
      @Appficial  4 ปีที่แล้ว +1

      Lol thanks for watching

  • @cc_1enjoyer487
    @cc_1enjoyer487 3 ปีที่แล้ว +1

    come on man

  • @tariktoudert3842
    @tariktoudert3842 2 ปีที่แล้ว

    Does it work when your name is Joe Biden ?

  • @MAGAVISHNUT
    @MAGAVISHNUT 3 ปีที่แล้ว

    Bro one doubt why we have to put this statement import java.util.scanner ; what is the meaning of this ☹️

    • @Appficial
      @Appficial  3 ปีที่แล้ว +1

      It adds the scanner library to your java program, so that you can use it and all of its methods

    • @MAGAVISHNUT
      @MAGAVISHNUT 3 ปีที่แล้ว

      @@Appficial tq bro