Java Programming Tutorial – 6 – Getting User Input

///Java Programming Tutorial – 6 – Getting User Input

Java Programming Tutorial – 6 – Getting User Input

FavoriteLoadingAdd to favorites

Facebook –
GitHub –
Google+ –
LinkedIn –
reddit –
Support –
thenewboston –
Twitter –

source

Java468x60
By |2019-08-09T21:43:32+00:00August 9th, 2019|Java Video Tutorials|34 Comments

34 Comments

  1. The Ficho August 9, 2019 at 9:43 pm - Reply

    Thanks.Good video.

  2. Jelp Playz August 9, 2019 at 9:43 pm - Reply

    But
    How do i make the println triggered by inputting a word

    Example if i input "burger"
    It will print "Cheese burger"

    Or if i input (10) it will print "too much"

  3. ameer hamza August 9, 2019 at 9:43 pm - Reply

    Buck you still alive……………??

  4. Brian Dacallos August 9, 2019 at 9:43 pm - Reply

    2019 Lol !

  5. Mithlesh Trivedi August 9, 2019 at 9:43 pm - Reply

    bucky is not a variable, its an object of the scanner class.

  6. happy new year August 9, 2019 at 9:43 pm - Reply

    scanner is Scanner

  7. Julio E. Gonzalez August 9, 2019 at 9:43 pm - Reply

    Right now , doesn't use the name of the kind of variable before the variable. In this case doesn't need put Scanner.

  8. Japhet Anciado August 9, 2019 at 9:43 pm - Reply

    i copied the exact same code but it just says no arguments

  9. Severo Bastardito August 9, 2019 at 9:43 pm - Reply

    hey now…

    you're a rockstar…

  10. ritesh kakkar August 9, 2019 at 9:43 pm - Reply

    hello where java is used

  11. Imran Syafiq August 9, 2019 at 9:43 pm - Reply

    Java cannot read an input, it is the most useless trash stupid language ever. It is the car equivalent of a Proton or a Toyota Prius

  12. Marcin Chojniak August 9, 2019 at 9:43 pm - Reply

    It is a little bit misguiding as there I can't see that "bucky" is actually storing anything – it's not a variable itself, it's an object and to be accurate it is an reference to an object
    Lets get code
    public static void main(String[] args)
    {
    Scanner bucky = new Scanner(System.in);
    scan.nextLine();
    bakecake(bucky); // is not going to work bucky is not storing anything – I may be wrong it's not explained in this video

    //what is going to work:

    String chain; // it is a pointer to an object as well, but it's made to be an variable
    chain = bucky.nextLine();
    System.out.println(chain); // it is going to work
    bakecake(chain); // it is going to work as well
    }

    void bakecake(String b)
    {
    System.out.println(b);
    }

    void bakecake(Scanner b)
    {
    System.out.println(b);
    }

  13. Mike Sandoval August 9, 2019 at 9:43 pm - Reply

    Thank you so much for your videos. You explain things better than my Java teacher.

  14. Sean Romero August 9, 2019 at 9:43 pm - Reply

    I swear to got I started drifting off at 2:51, and was terrified that he knew

  15. Cody King August 9, 2019 at 9:43 pm - Reply

    Trying to do this with Java 8 and its telling me Scanner doesn't exist.

  16. Yannick Vankerkhove August 9, 2019 at 9:43 pm - Reply

    Can you get input from a mouse too?

  17. Navneet Kumar August 9, 2019 at 9:43 pm - Reply

    Showing error…did not work

  18. Yavuz Cil August 9, 2019 at 9:43 pm - Reply

    but why would you jump right into scanners before doing the basics, like the short, char, boolean, double, long, int etc. Also there are the if else etc. Jumping into this with no idea sucks 🙁 when am i going to use the scanner ever?

  19. Srujan Wankhede August 9, 2019 at 9:43 pm - Reply

    import java.util.Scanner;

    public class apples {

    public static void main ( String [] args ) {

    Scanner input = new Scanner (System.in);

    System.out.println("be obedient and type Y");

    String name = input.nextLine();

    if(name == "Y" ) {

    System.out.println("Worked");

    }else {

    System.out.println("didn't worked");

    }

    }

    }

    output:
    be obedient and type Y

    Y

    didn't worked
    ****************************************************
    can any body help ,me why this is not working??

  20. Ashik Jonathan August 9, 2019 at 9:43 pm - Reply

    learning in udemy came here because didn't get it. now got it.

  21. Jhet_writes August 9, 2019 at 9:43 pm - Reply

    you're an all star

  22. Japhet Anciado August 9, 2019 at 9:43 pm - Reply

    why its called system.in not user.in hmmmm

  23. evidence mufari August 9, 2019 at 9:43 pm - Reply

    Thank you Bucky

  24. harsh Yadav August 9, 2019 at 9:43 pm - Reply

    can anyone help pls…while reading a string if i write bucky.next() it works but if i write bucky.nextLine() it does not wait for the input…why so??

  25. TylersAwesomeMusic August 9, 2019 at 9:43 pm - Reply

    When you are looking at something else, and Bucky says "pay attention!" lol

  26. parza aso August 9, 2019 at 9:43 pm - Reply

    i didnt get why we use nextline

  27. Paolo Dagdag August 9, 2019 at 9:43 pm - Reply

    How is imput java.util.*; different from import java.util.Scanner?

  28. Sougata Roy August 9, 2019 at 9:43 pm - Reply

    Hey buck can I do this without eclipse?

  29. finalblaziken8659 August 9, 2019 at 9:43 pm - Reply

    how does this work?

  30. amit roy August 9, 2019 at 9:43 pm - Reply

    Bucky, Thanks 🙂

  31. RedDevil21 August 9, 2019 at 9:43 pm - Reply

    come on guys no all star comments sighs

  32. Dennis Nosis August 9, 2019 at 9:43 pm - Reply

    very informative bro more vidss!!!

  33. siddharth bhonsle August 9, 2019 at 9:43 pm - Reply

    Hey now you're a Rock Star get the show on get paid

Leave A Comment

*