Java Tutorial: Getting User Input in Java

///Java Tutorial: Getting User Input in Java

Java Tutorial: Getting User Input in Java

FavoriteLoadingAdd to favorites

Taking User input in Java Programming: In this video we will see how to get Input from User in Java Programming language. Scanner class is used to take user input in Java. Java scanner class has methods like nextInt, nextFloat etc which are used to take user input entered from the keyboard. We will see how to instantiate the scanner class object and create a program which is capable of taking user input.
►This playlist is a part of my Complete Java Course:
►Source Code:
►Notes:
►Ultimate Java Cheatsheet:
►Checkout my English channel here:
►Click here to subscribe –

Java468x60

Best Hindi Videos For Learning Programming:
►Learn Python In One Video –

►Python Complete Course In Hindi –

►C Language Complete Course In Hindi –

►JavaScript Complete Course In Hindi –

►Learn JavaScript in One Video –

►Learn PHP In One Video –

►Django Complete Course In Hindi –

►Machine Learning Using Python –

►Creating & Hosting A Website (Tech Blog) Using Python –

►Advanced Python Tutorials –

►Object Oriented Programming In Python –

►Python Data Science and Big Data Tutorials –

Follow Me On Social Media
►Website (created using Flask) –
►Facebook –
►Instagram –
►Personal Facebook A/c –
Twitter –

source

By |2020-12-22T11:17:45+00:00December 22nd, 2020|Java Video Tutorials|33 Comments

33 Comments

  1. CodeWithHarry December 22, 2020 at 11:17 am - Reply

    Share kar dena dosto!
    I am doing my best to create the best Java Course for you. Please do your part by sharing this video!

    Access the Playlist: https://www.youtube.com/playlist?list=PLu0W_9lII9agS67Uits0UnJyrYiXhDS6q

    Instagram: Instagram.com/CodeWithHarry

  2. Gladiator Pankaj December 22, 2020 at 11:17 am - Reply

    harry bhai aapke vedios par adds bohot aati hai 😅

  3. Jaswinder Singh December 22, 2020 at 11:17 am - Reply

    best course for java i can get thx so much

  4. 20UEC061 Subham Haldar December 22, 2020 at 11:17 am - Reply

    We are rocking 💥

  5. Khalid Khan Official December 22, 2020 at 11:17 am - Reply

    Nice video man ❤

  6. D.J Gaming December 22, 2020 at 11:17 am - Reply

    Love you bhai 😍😍

  7. Syed Ahmed Raza Shah December 22, 2020 at 11:17 am - Reply

    Thanks

  8. Mohammed Shahid December 22, 2020 at 11:17 am - Reply

    boolen b1=sc.hasNextFloat();
    system.out.println(b1);

    output
    i have given 56 as my input, its showing TRUE

  9. 1052_TY_ LUVANI_DHRUV December 22, 2020 at 11:17 am - Reply

    this is what i want.👌👌👌❤❤✔

  10. muskan srivastav December 22, 2020 at 11:17 am - Reply

    Sir at 8:15 par ham 2 number without scanner wali line likh kr print kyu ni krwa skte

  11. muskan srivastav December 22, 2020 at 11:17 am - Reply

    Sir at 8:15 par ham 2 number without scanner wali line likh kr print kyu ni krwa skte

  12. muskan srivastav December 22, 2020 at 11:17 am - Reply

    Sir at 8:15 par ham 2 number without scanner wali line likh kr print kyu ni krwa skte

  13. muskan srivastav December 22, 2020 at 11:17 am - Reply

    Sir at 8:15 par ham 2 number without scanner wali line likh kr print kyu ni krwa skte

  14. taufik bavaliya December 22, 2020 at 11:17 am - Reply

    Thanks a lot harry bhai

  15. ringtone 2021 December 22, 2020 at 11:17 am - Reply

    Amazing course

  16. manoj pandey December 22, 2020 at 11:17 am - Reply

    Thankyou so much sir
    I always suggest my friends about your channel .
    You are great.

  17. Manoj December 22, 2020 at 11:17 am - Reply

    Very nice bro

  18. Suyash Mukherjee December 22, 2020 at 11:17 am - Reply

    Carry ki Tarah lg kyu rhe ho 😂

  19. ATUL Verma December 22, 2020 at 11:17 am - Reply

    Bro i don't have computer to check my codes but i am confident that my all 13 code (every mathemetical operation) is correct well i cant do anything execpt waiting for computer

  20. Gulafsha Khanam December 22, 2020 at 11:17 am - Reply

    Sir please make tutorial on project in java

  21. Titu Singh December 22, 2020 at 11:17 am - Reply

    You are great. I love your videos

  22. S4M December 22, 2020 at 11:17 am - Reply

    This error showed when I made a Scanner class like 7:02.
    Enter number 1

    Exception in thread "main" java.util.NoSuchElementException

    at java.util.Scanner.throwFor(Scanner.java:862)

    at java.util.Scanner.next(Scanner.java:1485)

    at java.util.Scanner.nextInt(Scanner.java:2117)

    at java.util.Scanner.nextInt(Scanner.java:2076)

    at Precedence.main(Precedence.java:8)

  23. Mubashar Chughtai December 22, 2020 at 11:17 am - Reply

    Sir
    Respect and love from pakistan
    I started java after seen this fantastic tutorial…
    Plz sir this is the begineer course now plz make advance level java course also

  24. Auroshis Panda December 22, 2020 at 11:17 am - Reply

    Nice video

  25. Dharmendra Rayakwar December 22, 2020 at 11:17 am - Reply

    Amazing 🙏🏻🙏🏻🙏🏻

  26. Sash Gurav December 22, 2020 at 11:17 am - Reply

    i have one doubt… please solve harry…. at 11.57 u are giving input but u have commented int a = sc.nextint(); then how it is accepting and storing the input … also the boolean is also showing true ….how??

  27. ruchika Suryawanshi December 22, 2020 at 11:17 am - Reply

    percentage program:
    import java.util.Scanner;

    public class get_percentage {

    public static void main(String[] args) {

    Scanner sc = new Scanner(System.in);

    System.out.println("Enter Your Marks in Five Subjects: ");

    int subject1 = sc.nextInt();

    int subject2 = sc.nextInt();

    int subject3 = sc.nextInt();

    int subject4 = sc.nextInt();

    int subject5 = sc.nextInt();

    int avg = (subject1 + subject2 + subject3 + subject4 + subject5);

    float percentage = avg / 5;

    System.out.println("Your Percentage is: " + percentage);

    }

    }

  28. Smit Patel December 22, 2020 at 11:17 am - Reply

    import java.util.Scanner;
    public class Sum{
    public static void main(String[] args) {
    Scanner sc=new Scanner(System.in);
    System.out.println("Enter the marks of first s1");
    int s1=sc.nextInt();
    System.out.println("Enter the marks of second s2");
    int s2=sc.nextInt();
    System.out.println("Enter the marks of third s3");
    int s3=sc.nextInt();
    System.out.println("The sum of the 3 subject is");
    int sum=s1+s2+s3;
    System.out.println(sum);
    System.out.println("The percentage of the marks is");
    float percentage=sum%100;
    System.out.println(percentage);

    }
    }

  29. SK VINES PRANK December 22, 2020 at 11:17 am - Reply
  30. SK VINES PRANK December 22, 2020 at 11:17 am - Reply

    Sir all is good but yeh wala method achanak se samjh nahi aaya what can i doo

  31. Ayush Mishra December 22, 2020 at 11:17 am - Reply

    Comments can be used to explain Java code, and to make it more readable. It can also be used to prevent execution when testing an alternative code. Single-line comments start with two forward slashes ( // ). Any text between // and the end of the line is ignored by Java (will not be executed).

    THANKS …

  32. AKASH Singh December 22, 2020 at 11:17 am - Reply

    💜💜💜

  33. Sushant Lama December 22, 2020 at 11:17 am - Reply

    Nice video sir

Leave A Comment

*