title: Reader how to catch eof
body: <p>I have a problem with the catch EOF character.</p>
  
  <pre><code>int y = read();
  char x = (char) y;
  System.out.println(y);
  return x;   
  </code></pre>
  
  <p>But when I get EOF it returns 10 and closes the stream. I tried with ready, but it doesn't work. :(
  EDIT
  How do I signal EOF to a program that is reading System.in from the 
  NetBeans console?
  I will try with eclipse console cuz other Readers works.
  EDIT
  Problem solved works on eclipse</p>