黑马程序员技术交流社区
标题:
怎么输出代码加char
[打印本页]
作者:
细节是成功妻子
时间:
2016-6-5 23:52
标题:
怎么输出代码加char
public static void main(String[] args) throws IOException{
InputStream instream=new FileInputStream("demo03.txt");
Reader inReader=new InputStreamReader(instream);
int n=inReader.read();
System.out.println("读取的字符:"+(char)n);?怎么加char?
inReader.close();
}
}
欢迎光临 黑马程序员技术交流社区 (http://bbs.itheima.com/)
黑马程序员IT技术论坛 X3.2