001-005-006

Variable as Value Assignment: Name Backup

Easy

Problem Description

variable as Value Assignment: Name Backup

Learning Objective: Understand that string variables can be copied the same way

In this problem, you will create a program that reads a name string with Scanner, copies it to another String variable using String backup = original;, and displays both the original and backup variables in the specified format to standard output.

Input a name and display both the original and backup variables.

Input

Line 1: Name (string)

Output

================================
       Name Backup
================================
Original: [name]
Backup: [name]
================================
```java

## Examples

### Example 1: Backup Tanaka's name
Input:
```java
Tanaka
```java
Output:
```java
================================
       Name Backup
================================
Original: Tanaka
Backup: 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