bufferedreader.read()返回是int
bufferedreader.readline() 返回是string
//////////////////////////////////////////////
public int read()
throws IOExceptionRead a single character.
Overrides:
read in class Reader
Returns:
The character read, as an integer in the range 0 to 65535 (0x00-0xffff), or -1 if the end of the stream has been reached
Throws:
IOException - If an I/O error occurs
bufferedreader.readline() 返回是string
//////////////////////////////////////////////
public int read()
throws IOExceptionRead a single character.
Overrides:
read in class Reader
Returns:
The character read, as an integer in the range 0 to 65535 (0x00-0xffff), or -1 if the end of the stream has been reached
Throws:
IOException - If an I/O error occurs
解决方案 »
- Jbutton如何去掉文字旁边的空白
- java中String是引用数据类型还是值类型?
- static可以多次赋值?
- 再帮我看一段代码,马上结贴
- 关于循环链表的问题
- 各位大侠,有没有不需要每次readLine就可以直接跳到文件最后一行的method或java实现?这样可以减少不必要的disk io
- 请高手帮帮忙,谢谢!
- 求Java最短路径的算法(Dijsktra算法)
- 能在Eclipse中定义宏操作么?如果能的话,如何定义?
- 请问 ucs2编码如何转化成gb格式的?
- <jsp:setProperty name="PageHeaderInfo" property="*" />是什么意思?
- socket编程的输入输出流问题(搞分)
readLine()读取的是一行字符串 返回是string
readLine()读取的是一行字符串 返回是string