Why can't I read a int value after char value in Java?
<p>I have created a simple Java application using <code>readLine()</code> of <code>BufferedReader</code>. The code is as follows:</p>

<pre><code>import java.io.*;
class demo_data
{
    public static void main(String hh[])throws Exception
    {
        char c=' ';
        int i=0;
        String name="";
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        System.out.print("Enter char:");
        c=(char)br.read();
        System.out.print("Enter String:");
        name=br.readLine();
        System.out.print("Enter value:");
        i=Integer.parseInt(br.readLine());
        System.out.print("\tChar:"+c+"\tName:"+name+"\tValue:"+i);
    }
}
</code></pre>

<p>My problem is that after reading character value, the string statement is skipped and I'm not able to read the value for variable name. If I read a <code>char</code> value and then try to read <code>int</code> value it throws a <code>NumberFormatException</code>. Why?</p>
