HomeОбразованиеRelated VideosMore From: Appficial

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

19 ratings | 1211 views
The Scanner class (java.util.Scanner) is used to read data into your program. See the Java API for more information on the class Scanner https://docs.oracle.com/javase/8/docs/api/java/util/Scanner.html Here are some commonly used Scanner methods: next() - read as String up the the blank space delimiter nextLine() - read a String to the end of the line, including spaces nextInt() - read an integer nextDouble() - read a double (floating point number) nextBoolean() - read a boolean nextLong() - read a long nextByte() - read a byte nextShort() - read a short next().charAt(0) - read the first character of a string (char) Please SUBSCRIBE to Appficial, and check out more Java Programming Tutorials! http://www.appficial.com The Basic Parts of a Java Program - Class and Main Method Header and Comments https://youtu.be/sHEk2DSBnSg Java Declaring and Initializing Variables https://youtu.be/Ag8ZH5qRzqM Naming Java Identifiers - Variables, Methods, and Object Names - Java Tutorial https://youtu.be/g0NR6Z0ac1A Java Reserved Keywords - Words like public static void class int double https://youtu.be/dklOXLDdeqc Java Primitive Data Types - byte short int long float double char and boolean https://youtu.be/hHTrxfEWPy0 Java Integers - int long byte and short Integer Variables https://youtu.be/FsrIsDSgTiQ Java Floating Point Numbers - float and double https://youtu.be/6JRufRrO1mQ Java E Notation - Doing Scientific Notation in a Java Program https://youtu.be/9tTKa9jEgNs Java Integer Division and Dividing by Zero - Java Tutorial - Appficial https://youtu.be/46Ngr6eczpA Java Basic Math Arithmetic Expressions and Precedence Rules https://youtu.be/IMavhbsbIeQ Java Compound Operators - Combined Assignment Arithmetic Operator Examples https://youtu.be/2TP7XOyCW1o Java Constants - Constant Variables using Keyword Final https://youtu.be/cj_5D8-vrfQ Java Math Class Methods https://youtu.be/Guhb43pivCs Java Type Conversions and Type Casting https://youtu.be/hXxFVXBxQ1Q How to Convert Binary numbers to Decimal Numbers https://youtu.be/g1TOLO2FsvQ Java Characters - The char Primitive Data Type https://youtu.be/LBQrD2nkKQg Java Escape Characters https://youtu.be/jZpSjEGMlUQ Java String Class https://youtu.be/3G9IcmbV4Gs Java Scanner Class https://youtu.be/A1QXB_6ALDA Java Integer Overflow https://youtu.be/lTnUbx5Gi6o Java Style Guidelines https://youtu.be/P7xur0m6-do
Html code for embedding videos on your blog
Text Comments (4)
abhishek kar (1 month ago)
you are great ...thanks for helping me out
Appficial (1 month ago)
Thanks, you're welcome!
Shelly Tumbleson (4 months ago)
You had me at "You love the D." In seriousness, thanks for helping me get my noodle around the next method.
Appficial (4 months ago)
Haha, no problem. Glad the video helped

Would you like to comment?

Join YouTube for a free account, or sign in if you are already a member.