2017年7月23日

Scanner 与 Readable 的read()方法

摘要: Readable接口中的read()方法实现了将字符串读入charBuffer中,但是只有在需要输出的时候才会调用。 Scanner是文本扫描器类,利用Scanner扫描并输出charBuffer中的内容的顺序:以hasNext()方法为例:第一次调用 hasNext(),由于此时charBuffe 阅读全文

posted @ 2017-07-23 17:44 Free〃 阅读(193) 评论(0) 推荐(0)

导航