Java io using read() -
I was trying this code snippet -
import java.io. *; Class Demo {Public Static Zero Key (String Array []) Throws IOException {BufferedReader br = new BufferedReader (New InputStreamReader (System.in)); Int c; Do {c = (char) br.read (); Println (c); } While (c = 'q'!); }}
Now when I give input -22 output - 50 50 13 10
I understand the output 50, 50, but why compiler is printing 13 ? Please help Thanks!
I think there are 13 and 10 CR / LF: the end of the line.
Comments
Post a Comment