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
99
1
2
3
4
5
6
7
8
9
10
›
⌄
⌄
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
