title: print string by using Scanner class
body: <p>I am giving this input "Welcome to HackerRank's Java tutorials!" into  but </p>
  
  <p>printing only "Welcome" string through scanner class.</p>
  
  <pre><code>import java.util.Scanner;
  public class Solution {
  
      public static void main(String[] args) {
          Scanner scan = new Scanner(System.in);
          int i = scan.nextInt();
          double d = scan.nextDouble();
          String s = scan.nextLine();
          scan.close();
  
          // Write your code here.
  
          System.out.println("String: " + s);
          System.out.println("Double: " + d);
          System.out.println("Int: " + i);
      }
  }
  </code></pre>
  
  <p>How to resolve this?</p>