title: Use of nextLine() method after using nextInt() method
body: <p>I am not able to use <code>nextLine</code> method after using <code>nextInt</code> method.This is the note given below....</p>
  
  <p>note in hacker rank:(If you use the <code>nextLine()</code> method immediately following the <code>nextInt()</code> method, recall that <code>nextInt()</code> reads integer tokens; because of this, the last newline character for that line of integer input is still queued in the input buffer and the next <code>nextLine()</code> will be reading the remainder of the integer line (which is empty).
  The nextLine method is not getting skiped but it is empty.
  Code:</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();
      // Write your code here.
  
      System.out.println("String: " + s);
      System.out.println("Double: " + d);
      System.out.println("Int: " + i);
    }
  }
  </code></pre>
  
  <p>Output:
  String: 
  Double: 3.1415
  Int: 42</p>