BufferedWriter里的write()# Java - 爪哇娇娃
c*n
1 楼
write
public void write(int c)
throws IOException
Write a single character.
Overrides:
write in class Writer
Throws:
IOException - If an I/O error occurs
这里说的是write a single character,但怎么输入参数却是int呢?
比如我要写一个字符 'c'到这个 BufferedWriter bw里面去,怎么写呢?
bw.write('c')就可以了么?
public void write(int c)
throws IOException
Write a single character.
Overrides:
write in class Writer
Throws:
IOException - If an I/O error occurs
这里说的是write a single character,但怎么输入参数却是int呢?
比如我要写一个字符 'c'到这个 BufferedWriter bw里面去,怎么写呢?
bw.write('c')就可以了么?