首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
下面是用 RandomAccessFile oureFile; Strings="information to Append\n mon!\n"; oureFile=newRandomAccessFile oureFile("phone.
下面是用 RandomAccessFile oureFile; Strings="information to Append\n mon!\n"; oureFile=newRandomAccessFile oureFile("phone.
admin
2009-02-15
20
问题
下面是用
RandomAccessFile oureFile;
Strings="information to Append\n mon!\n";
oureFile=newRandomAccessFile oureFile("phone.number,numbers","rw");
模式打开访问oureFile文件,并在文件尾加信息s的addFile的源程序。请在下划线处填
上适当的语句将程序补充完整。
import java.io.*;
Class addFile
{
public static void main (String args[])throws IOException
{
RandomAccessFile oureFile;
_____________
=oureFile=new RandomAccessFile oureFile("phone.number,numbers","rw");
oureFile.seek(oureFile.length());
oureFile.writebytes(s);
oureFile.close();
}
选项
答案
String="information to Append\n mon !\n";
解析
转载请注明原文地址:https://kaotiyun.com/show/BCnp777K
本试题收录于:
二级Java题库NCRE全国计算机二级分类
0
二级Java
NCRE全国计算机二级
相关试题推荐
软件测试的目的是
在软件开发中,需求分析阶段产生的主要文档是
下列程序段执行以后,内存变量A和B的值是CLEARA=10B=20SETUDFPARMSTOREFERENCEDOSQWITH(A),(B)&&参数A是值传递,B是值传递?A,BPROCEDURESQPARAMETERSX1,
下列函数返回类型为数值型的是
设一棵完全二叉树共有700个结点,则此二叉树中的叶子结点数为
计算出“陆凭凭”所持有的全部外币相当于人民币的价值数量,下列语句正确的是()。(某种外币相当于人民币数量的计算公式:人民币价值数量=该种外币的“现钞买入价”*该种外币“持有数量”)“外汇名”表:外币代码外币名称
执行下列程序后,显示结果是()。*主程序main.prgRELEASEALLPRIVATEx,yx=1y=2DOpl?x,yPROCEDUREplLO
定义无符号整数类为UInt,下面可以作为类UInt实例化值的是
以下选项中,不是Python语言基本控制结构的县
下列()是不合法的Java标识符。
随机试题
属于医务人员之间关系的是()
中央乳糜管位于()。
禁止兴建向中华人民共和国海域及海岸()的中外合资经营企业、中外合作经营企业和外资企业。
水泥贮存期在()内,不一定要进行性能试验。
注册会计师甲、乙、丙共同出资设立一特殊的普通合伙制会计师事务所。因甲、乙在某次审计业务中故意出具不实审计报告,人民法院判决会计师事务所赔偿当事人50万元。根据合伙企业法律制度的规定,下列关于该赔偿责任承担的表述中,正确的是()。
2015年5月,张三因装修房屋向李四借款6万元。经友好协商,双方约定:张三应于2016年6月30日前归还本息共计6.1万元。但张三并未按期还款,李四多次索要无果,遂向人民法院提起诉讼,请求人民法院判决张三还款。下列说法正确的是()。
自身具有酪氨酸蛋白激酶活性的受体是
设函数f(x)在[0,+∞)上可导,f(0)=0,且其反函数为g(x).若g(t)dt=x2ex,求f(x).
"Flexibility"hasbecomeakeymetaphorpotentlyvivifyingavarietyofcontemporarylifediscourses.【F1】Ascapitalbecomesmore
DearMr.Black,Weareamid-sizedaccountingfirm.Ourstaffmembersarenothappywithourcurrentinsuranceplan,sowear
最新回复
(
0
)