002-001-008
Scanner Class Basics: Name Survey
Easy
Problem Description
Scanner Class Basics: Name Survey
Learning Objective: Use Scanner class to input strings from keyboard
In a name survey program, input and display a name. Scanner class is a tool for receiving data from the keyboard.
Input
Line 1: Name (string)
Output
================================
Name Survey
================================
Thank you for your input!
Your name: [name]
================================
Examples
Example 1: Taro Tanaka
Input:
Taro Tanaka
Output:
================================
Name Survey
================================
Thank you for your input!
Your name: Taro Tanaka
================================
Ready to Try Running Code?
Log in to access the code editor and execute your solutions for this problem.
Don't have an account?
Sign Up