Well, strictly speaking, it is "press ENTER to continue".
Try
System.in.read(new byte[2]);
Under Windows, an ENTER gives \r\n. So 2 bytes are needed here.
Well, strictly speaking, it is "press ENTER to continue".
Try
System.in.read(new byte[2]);
Under Windows, an ENTER gives \r\n. So 2 bytes are needed here.
Post new comment