首页
题库
网课
在线模考
桌面端
登录
搜标题
搜题干
搜选项
0
/ 200字
搜索
判断题
在中外的文化中,小说是最古老和最基本的样式。( )
答案:
错误
点击查看答案解析
在线练习
手机看题
你可能感兴趣的试题
单项选择题
下面函数的功能是( )
a(s1,s2) char s1[],s2[]; { while(s2++=s1++) ; }
A、 字符串比较
B、 字符串复制
C、 字符串连接
D、字符串反向
点击查看答案解析
手机看题
问答题
以下程序实现读写文件的功能,请把_________上的语句填写完整。
import java.io.*; public class ioTest { public static void main(String args[]) { //首先,基于字节输出流FileOutputStream向文件中写入数据 try { FileOutputStream fout= new FileOutputStream(new File("d:/my.txt")); fout.write("2017122108 男 王晓飞 计算机计171 江苏苏州".getBytes()); fout.close(); //关闭输出流 } catch(IOException e) { } //接下来,基于字节输入流FileInputStream,将文件中的信息读出并显示 try { FileInputStream fin=new FileInputStream(new File("d:/my.txt")); byte[] data=new byte[200];//接收从文件中读到的数据 int n;//n为实际读到的字节数 while((n=fin.read(__________))!=-1) { String s=new String(data,0,n);//将读到的数据拼成字符串 System.out.println(s);//输出 } } catch(IOException ex) { } } }
答案:
data
点击查看答案解析
手机看题
微信扫码免费搜题