Skip to main content

Posts

Showing posts with the label Day 0: Hello

Day 0: Hello, World. Hackerrank Solution in java

 Day 0: Hello, World. Hackerrank Solution Do check My Video on Explanation of Following Code: Sample Input Welcome to 30 Days of Code! Sample Output Hello, World. Welcome to 30 Days of Code! Code: import  java.io.*; import  java.util.*; import  java.text.*; import  java.math.*; 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." );         System.out.println(inputString);