title: how to read int,double,and sentence of string using same scanner variable
body: <pre><code>import java.util.Scanner;
  
  public class Solution {
  
      public static void main(String[] args) {
              Scanner sc=new Scanner(System.in);
              String s=new String();
              int x=sc.nextInt();
              double y=sc.nextDouble();
              s = sc.next();
  
              System.out.println("String:"+s);
              System.out.println("Double: "+y); 
              System.out.println("Int: "+x);     
       }       
  }
  </code></pre>
  
  <p>it scans only one word pleasd give any suggestions...</p>