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

解决方案 »

  1.   

    read()读的是单个字符,readLine()读取的是一行字符串
      

  2.   

    read()读的是单个字符 返回是int 也就是单个字符的位置
    readLine()读取的是一行字符串 返回是string
      

  3.   

    大哥,好好看看jdk的DOC吧,
      

  4.   

    楼上说的挺明白的了。read()读的是单个字符 返回是int是该字符的asc码,你直接用char强制转换就行了。
    readLine()读取的是一行字符串 返回是string