I don't know what error is in my code
<pre><code>import java.util.Scanner;
public class Hello{
    public static void main(String args[]){
        Scanner in = new Scanner(System.in);
        int a;
        String s;
        System.out.println("Enter int : ");
        a = in.nextInt();
        System.out.println("Enter String : ");
        s = in.nextLine();
        System.out.println("int : "+a+"\nString : "+s);
    }
}
</code></pre>

<p>I'm a completely beginner of Java. I made the class <code>Hello</code> and want to enter one number and one string but I think <code>s = in.nextLine();</code> this line is ignored. How can I enter two datas line by line.</p>

<p>Thank for your help in advance.</p>
