title: How to input int, double and String consecutive in Java language?
body: <p>I want to solve this java problem. but i did not proper answer form my code. Below here is my code:</p>
  <pre><code>public static void main(String[] args) {
      Scanner sc = new Scanner(System.in);
  
      int x = sc.nextInt();
      double y = sc.nextDouble();
      String s = sc.nextLine();
  
      System.out.println(&quot;Int: &quot; + x);
      System.out.println(&quot;Double: &quot; + y);
      System.out.println(&quot;String: &quot; + s);
  }
  </code></pre>
  <p>When I take input int, double and string variable, I can't proper answer. below this code's is input and output:</p>
  <pre><code>input: 
  23
  4434.2323
  
  Give output: 
  Int: 23
  Double: 4434.2323
  String: 
  </code></pre>
  <p>At the input time, i can take int, double variable but i can't take string input. my code return int and double variable.
  If can anybody help me, I will be benefited.</p>