This example shows how Java reads string input from the user. First, a Scanner object is created to read from the keyboard. Then the program prints a prompt asking the user to enter their name. It waits for the user to type and press Enter. The method nextLine() reads the entire line typed, including spaces, and stores it in the variable 'name'. Finally, the program prints a greeting using the entered name. The execution table traces each step, showing variable changes and output. Key points include why nextLine() is used instead of next(), and what happens if the user inputs an empty line.