002-002-006

String Input: Message Card Creation

Easy

Problem Description

String Input: Message Card Creation

Learning Objective: Input multiple strings using nextLine() method

In a message card creation program, input sender and recipient names to display the card.
Practice inputting multiple strings in sequence.

Input

Line 1: Sender name (string)
Line 2: Recipient name (string)

Output

================================
     Message Card
================================
From: [sender]
To: [recipient]
Thank you!
================================
❌ Some tests failed
❌ エラー発生

Your Solution

Current Mode: My Code
import java.util.Scanner;

public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
// Write your code here

sc.close();
}
}
0 B / 5 MB

You have 10 free executions remaining