diff --git a/day0.java b/day0.java index 31ee0e6..d53d0cd 100644 --- a/day0.java +++ b/day0.java @@ -5,20 +5,15 @@ import java.util.regex.*; public class Solution { 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."); - - // TODO: Write a line of code here that prints the contents of inputString to stdout. + System.out.println(inputString); } -} \ No newline at end of file +}