The Scanner class in Java provides a simple way to take input from the user in primitive data types like integers, floats, and characters. It uses a constructor with System.in to take input and breaks it into tokens using whitespace. The Scanner class contains methods like nextInt(), nextLine(), and next() to retrieve input as different data types, though nextLine() can cause issues by skipping the current line unless next() is used first to consume whitespace.