This is the code thats causing the problem. It is prety straightforward.


import java.io.*;

public class Mys
{
public static void main( String args[] ) throws IOException
{
int x;

System.out.print( "Enter value for x: ");
System.out.flush();
x = System.in.read();
System.in.skip(1);


System.out.println( "x = " + x );

}

}