PushbackReader without EOF?
I'm currently using PushbackReader and while waiting开发者_开发百科 for where it 'supposed' to be an EOF, I get the character 65535 and I'm wondering if that's normal.
Where is my EOF?!
Thank you.
Java char is unsigned; 65535 = 0xFFFF = -1; use int.
See also this java bug where in some JRE versions PushbackReader returns 65535 when reading an unread -1.
加载中,请稍侯......
精彩评论