# Scanner

A standard-library class commonly used to read typed input.

## What is **Scanner** in Java?

**Scanner** — A standard-library class commonly used to read typed input.

```java
import java.util.Scanner;

class Registration {
    String readName(Scanner input) {
        return input.nextLine();
    }
}
```

Level: Apprentice · [More Java terms at this level](https://www.ask-codey.com/glossary/subjects/java/apprentice)

Updated: September 27, 2026

Source: https://www.ask-codey.com/glossary/scanner
