You already use this
Since module 2 every practice task began with two lines you were told to treat as a recipe:
Scanner in = new Scanner(System.in);
int n = in.nextInt();
Now you know enough to see what they really are. Scanner is a class from Java's library — that is why the file needs import java.util.Scanner; at the top. new Scanner(System.in) builds an object of that class, wired to the keyboard input, exactly like the objects you built in module 4. And in.nextInt() is an instance method call on that object.
This lesson goes further: reading words as well as numbers, reading whole lines, and reading from a file instead of the keyboard.