Based on the read and readLine methods in the custom BufferedReader
•
Java
Examples are as follows:
In this way, OK can be detected
Both detection methods are OK.
The above article is based on the read and readLine methods in the user-defined BufferedReader, which is all the content shared by Xiaobian. I hope it can give you a reference and support more programming tips.
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码