forked from NoLongerNesquik/Java-Lab-003
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMrRoboto.java
More file actions
21 lines (18 loc) · 767 Bytes
/
MrRoboto.java
File metadata and controls
21 lines (18 loc) · 767 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Import the Scanner tool used for reading (All external packages/libraries/apis are imported similarly this)
import java.util.Scanner;
public class MrRoboto {
/**
* Teaching Mr. Roboto how to listen to us.
* @param args Command line arguments [The source file path, The target file path, ...]
**/
public static void main(String[] args) {
// The instantiation code for a Scanner instance.
Scanner scanner = new Scanner(System.in);
// Concatenate the user response to this String.
String domo = "Domo arigato ";
System.out.print("My name is Mr. Roboto, are you Kilroy? ");
// Write your program here
String input = scanner.nextLine();
System.out.println(domo + input);
}
}