It tells the compiler, that any time you use a Scanner, you mean the one which is located in java.util

Answer from Georg Plaz on Stack Overflow
๐ŸŒ
Quora
quora.com โ€บ What-does-import-java-util-Scanner-mean-in-Java
What does import java.util.Scanner mean in Java? - Quora
So the above statement will denote - java\util\Scanner in Windows environment. So, the full meaning is - import Scanner class which is in util folder inside the java folder. In java - util :stands for utility and contains utility classes.
๐ŸŒ
TheServerSide
theserverside.com โ€บ blog โ€บ Coffee-Talk-Java-News-Stories-and-Opinions โ€บ Java-Scanner-import
Java Scanner import
When you add an import statement ... import statement at the top of many Java classes means that somewhere in the code, the Scanner class is being used....
Discussions

What does "import java.util.Scanner;" mean? - Stack Overflow
What do the import statements at the beginning of files mean? As an example, this program calculates the total price which includes sales tax: import java.util.Scanner; public class SalesTax {... More on stackoverflow.com
๐ŸŒ stackoverflow.com
Module Question Java import java.util.Scanner; - Stack Overflow
Is it always required to import java.util.Scanner; at the beginning of your code in each of your java programs? More on stackoverflow.com
๐ŸŒ stackoverflow.com
confused about this!
Scanner is a class in java that is used for a lot of user input type stuff. So essentially what you are doing is creating a Scanner to grab the user input(the system.in part). Next you call the function reader.nextLine() which obtains whatever the user inputs, and then assign that value to a string variable called name. then you just print the name out edit: it is important to note that scanners are used a lot for file input and output stuff More on reddit.com
๐ŸŒ r/learnjava
16
2
December 12, 2017
eclipse - how to import java.util.Scanner - Stack Overflow
I'm new to Java, and I'm stuck as to why I'm getting an error message whenever I import java.util.Scanner. More on stackoverflow.com
๐ŸŒ stackoverflow.com
๐ŸŒ
W3Schools
w3schools.com โ€บ java โ€บ java_user_input.asp
Java User Input (Scanner class)
The Scanner class is used to get user input, and it is found in the java.util package. To use the Scanner class, create an object of the class and use any of the available methods found in the Scanner class documentation.
๐ŸŒ
Educative
educative.io โ€บ answers โ€บ what-is-javautilscanner-in-java
What is java.util.Scanner in Java?
Scanner is a class available in the java.util package. It is used to take input from a user for any primitive datatype (int, float, string, and so on). Before using the Scanner class, we need to import it.
๐ŸŒ
Augustana University
lovelace.augustana.edu โ€บ q2a โ€บ index.php โ€บ 854 โ€บ what-the-difference-between-java-util-and-java-util-scanner
What is the difference between java.util.* and java.util.Scanner? - Augustana CSC Q&A
January 21, 2019 - I don't know what you mean by java.util.Scanner but there are 2 java imports we use: 1. import java.awt. > to use Graphic 2. import java.util. > to use Scanner ยท java.util is a package which contains many classes. One of those classes is Scanner
๐ŸŒ
Programiz
programiz.com โ€บ java-programming โ€บ scanner
Java Scanner (With Examples)
The Scanner class of the java.util package is used to read input data from different sources like input streams, files, etc. Let's take an example. import java.util.Scanner; class Main { public static void main(String[] args) { // creates an object of Scanner Scanner input = new Scanner(System.in); ...
Find elsewhere
๐ŸŒ
TutorialsPoint
tutorialspoint.com โ€บ java โ€บ util โ€บ java_util_scanner.htm
Scanner Class in Java
The scanner class can be used by following the steps below โˆ’ ยท The first and important step is to import the java.util.Scanner at the top of our code, as without the Scanner class, we cannot use its methods.
๐ŸŒ
Quora
quora.com โ€บ What-is-the-exact-meaning-of-import-Java-util-Scanner-in-Java
What is the exact meaning of import Java.util.Scanner in Java? - Quora
Answer (1 of 4): > import java.util.Scanner; I'll go step by step. First of all to understand this, you need to know what a package is? In java, packages are the container for classes and whenever we want to use the features of another classes that are defined in another package,we use import ke...
๐ŸŒ
Stack Overflow
stackoverflow.com โ€บ questions โ€บ 69239950 โ€บ module-question-java-import-java-util-scanner
Module Question Java import java.util.Scanner; - Stack Overflow
The import java.util.Scanner; is ... Think what it means ( import java.util.Scanner ) It means you want to use a scanner class which is available in java.util package....
๐ŸŒ
LabEx
labex.io โ€บ tutorials โ€บ java-how-to-import-scanner-in-java-419202
How to import Scanner in Java | LabEx
graph TD A[java.lang.Object] --> B[java.util.Scanner] B --> C[Input Processing] B --> D[Type Parsing] Here's a basic example of using Scanner in Ubuntu 22.04: import java.util.Scanner; public class ScannerDemo { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); System.out.print("Enter your name: "); String name = scanner.nextLine(); System.out.print("Enter your age: "); int age = scanner.nextInt(); System.out.println("Hello, " + name + "!
๐ŸŒ
Reddit
reddit.com โ€บ r/learnjava โ€บ confused about this!
r/learnjava on Reddit: confused about this!
December 12, 2017 -

from http://mooc.cs.helsinki.fi/programming-part1/material-2013/week-1?noredirect=1

I'm confused about what scanner system does. so first

  1. "import java.util.Scanner to" import the scanner system into the main body program.

  2. Scanner reader = new Scanner(System.in) set scanner name as reader and creates new scanner that will parse the (system.in).

ugh I'm really confused here, they didn't really explain what each words mean, how they translate over to the next and such. I tried googling but kind of get it but no at the same time.

import java.util.Scanner;

public class Greeting {

public static void main(String[] args) {

    Scanner reader = new Scanner(System.in);

    System.out.print("Who is greeted: ");
    String name = reader.nextLine(); // Reads a line of input from the user and assigns it
                                     //     to the variable called name

    System.out.print("Hi " + name);
}

}

Top answer
1 of 2
2
Scanner is a class in java that is used for a lot of user input type stuff. So essentially what you are doing is creating a Scanner to grab the user input(the system.in part). Next you call the function reader.nextLine() which obtains whatever the user inputs, and then assign that value to a string variable called name. then you just print the name out edit: it is important to note that scanners are used a lot for file input and output stuff
2 of 2
2
If you're just getting started, it might be better to just accept some of this stuff as boilerplate, and ignore it for the time being. It will start making sense and become easier to understand once you learn more, and start writing your own classes and things like that. But I'll try to explain some of it. System.in is the standard input stream. (This uses the in variable from the System class). Typically when you run your program and type stuff in to the console, that input gets directed to this input stream. In your program, you can read from this input stream to get the user's input. By itself, the input stream can only give you raw bytes, which is typically not useful, so you'll need to use something to convert the bytes to something intelligible, which leads to... Scanner is a class that can take raw inputs of bytes or characters, and can parse that input into lines, words, numbers, and so forth. In your case, you're creating a Scanner that gets its input from the standard input stream. In java, classes are organized into packages. In the java standard library, there are many packages, and each package has many classes within in. Because there are so many classes, you need to say exactly which class you want to use. You do this using an import statement. In the case of the Scanner class, it is located in the java.util package, so you need to import java.util.Scanner; and that will let you use the Scanner class in your class, and java will know exactly which class you intend to use. The java.lang package is kind of a special package. You can use classes in that package (such as the System class) without needing an import statement. They are imported automatically.
๐ŸŒ
Stack Overflow
stackoverflow.com โ€บ questions โ€บ 68057280 โ€บ how-to-import-java-util-scanner
eclipse - how to import java.util.Scanner - Stack Overflow
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); System.out.println("What is your name?
๐ŸŒ
Oracle
docs.oracle.com โ€บ javase โ€บ 7 โ€บ docs โ€บ api โ€บ java โ€บ util โ€บ Scanner.html
Scanner (Java Platform SE 7 )
Javaโ„ข Platform Standard Ed. 7 ... A simple text scanner which can parse primitive types and strings using regular expressions.
๐ŸŒ
JavaBeat
javabeat.net โ€บ home โ€บ how to import a scanner class in java?
How to Import a Scanner Class in Java?
January 31, 2024 - The following example demonstrated the inclusion of the Scanner class and using its static method to read user input. First, the Scanner class is imported from the โ€œutilโ€ package for reading a string input.
๐ŸŒ
Javatpoint
javatpoint.com โ€บ Scanner-class
java.util.Scanner
There are various ways to read input from the keyboad, the java.util.Scanner class is one of them. The Scanner class breaks the input into tokens using a delimiter which is whitespace bydefault. It provides many methods to read and parse various primitive values.
๐ŸŒ
JustAnswer
justanswer.com โ€บ computer-programming โ€บ oecdq-wrong-code-import-java-util-scanner.html
What is Import Java Util Scanner - Expert Q&A
April 16, 2023 - Customer: what is wrong with this code:import java.util.Scanner;public class LabProgram { public static void main(String[] args) { Scanner scnr = new Scanner(System.in); int baseChar; int headChar; baseChar = scnr.nextInt(); headChar = scnr.nextInt();// Print arrowhead for (int i = 1; i <= ...