views:

28

answers:

1

Hello SOers,
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.

+1  A: 

Java char is unsigned; 65535 = 0xFFFF = -1; use int.

trashgod