-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathDay00.java
More file actions
20 lines (16 loc) · 712 Bytes
/
Day00.java
File metadata and controls
20 lines (16 loc) · 712 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import java.util.*;
public class Day00 {
public static void main(String[] args) {
// Create a Scanner object to read input from stdin.
Scanner scan = new Scanner(System.in);
// Read a full line of input from stdin and save it to our variable, inputString.
String inputString = scan.nextLine();
// Close the scanner object, because we've finished reading
// all of the input from stdin needed for this challenge.
scan.close();
// Print a string literal saying "Hello, World." to stdout.
System.out.println("Hello, World.");
System.out.println(inputString);
// ToDo: Write a line of code here that prints the contents of inputString to stdout.
}
}