From 28aebc6476f40e46aefda93c064d89ec14ff10c1 Mon Sep 17 00:00:00 2001 From: hemanth981 <56482674+hemanth981@users.noreply.github.com> Date: Sat, 12 Oct 2019 21:43:07 +0530 Subject: [PATCH] Update Day0.java --- hackerrank/Day0.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/hackerrank/Day0.java b/hackerrank/Day0.java index c42d854..080fc45 100644 --- a/hackerrank/Day0.java +++ b/hackerrank/Day0.java @@ -7,18 +7,18 @@ public class Day0 { public static void main(String[] args) { // Create a Scanner object to read input from stdin. - Scanner scan = new Scanner(System.in); + Scanner scans = new Scanner(System.in); // Read a full line of input from stdin and save it to our variable, inputString. - String inputString = scan.nextLine(); + String inputString = scans.nextLine(); // Close the scanner object, because we've finished reading // all of the input from stdin needed for this challenge. - scan.close(); + scans.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. } -} \ No newline at end of file +}