002-002-005
String Input: Address Input Form
Easy
Problem Description
String Input: Address Input Form
In this problem, you will create a program that reads prefecture and city as two separate lines using Scanner, then displays a formatted address confirmation screen to standard output.
Learning Objective: Handle multi-line string input
In an address input form, input prefecture and city to display confirmation screen. Practice receiving multiple pieces of information in sequence like actual form input.
Input
Line 1: Prefecture (string)
Line 2: City (string)
Output
================================
Address Confirmation
================================
Input:
Prefecture: [prefecture]
City: [city]
================================
```java
## Examples
### Example 1: Tokyo, Shibuya
Input:
```java
Tokyo
Shibuya
```java
Output:
```java
================================
Address Confirmation
================================
Input:
Prefecture: Tokyo
City: Shibuya
================================
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