用户可以利用
第1题:
在程序中,用户输入一个文件名,根据用户输入显示相应文件的信息。
注意:请勿修改main()主方法和其他已有语句内容,仅在横线处填入适当语句。
______java.io.*;
public class basic
{
public static void main(String[] args)
{
InputStreamReader reader;
BufferedReader in;
System.out.println("请输入文件名: ");
try
{
reader=new InputStreamReader(______);
in=new BufferedReader(reader);
String filename=in.readLine();
File file=new File(filename);
System.out.println("文件名:"+file.______);
System.out.println("路径:"+file.getAbsolutePath());
System.out.println("大小:"+file.length());
}
catch(Exception e)
{
e.printStackTrace();
}
}
}
第2题:
A.工作空间路径
B.工作空间名称
C.工作空间大小
D.工作空间时间
第3题:
What command would an operator use to move a file from the /old_dir directory to the /new_dir directory without changing the file name?()
第4题:
为文件c:/java/example/file.txt建立File对象file1可以采用()语句序列。
第5题:
利用()用户可以随心所欲地绘制出不同行高、列宽的各种不规则的复杂表格。
第6题:
下列关于VisualFoxPro工具栏的叙述中,错误的是()。
第7题:
Workspace用户本地终端的USB设备可以重定向到云桌面中使用。
第8题:
You need to recommend a solution for deploying App2.What should you recommend?()
第9题:
String name= File.getParentName(“file.txt”);
String name= (new File(“file.txt”)).getParent();
String name = (new File(“file.txt”)).getParentName();
String name= (new File(“file.txt”)).getParentFile();
Directory dir=(new File (“file.txt”)).getParentDir(); String name= dir.getName();
第10题:
FileOutputStream out=new FileOutputStream(“file.txt”,true);
OutputStream out=new FileOutputStream(“file.txt”,“append”);
OutputStream out=new FileOutputStream(“file.txt”);
FileOutputStream out=new FileOutputStream(new file(“file.txt”));
OutputStream out=new FileOutputStream(new File(“file.txt”),true.;
第11题:
OutputStream out= new FileOutputStream (“file.txt”); Out.writeBytes (“ /n”);
OutputStream os= new FileOutputStream (“file.txt”, true); DataOutputStream out = new DataOutputStream(os); out.writeBytes (“ /n”);
OutputStream os= new FileOutputStream (“file.txt”); DataOutputStream out = new DataOutputStream(os); out.writeBytes (“ /n”);
OutputStream os= new OutputStream (“file.txt”, true); DataOutputStream out = new DataOutputStream(os); out.writeBytes (“ /n”);
第12题:
File file 1=new File(“c://java//example//file.txt”)
String path=”c:/java/example/”Filefile1=newFile(path,”oldfile.txt”)
File dir 1=new File(“c://java//example”)Filefile1=newFile(dir1,”oldfile.txt”)
File file 1=new File(“c:/java//example/file.txt”)
第13题:
下面关于工具栏的叙述,不正确的是( )。
A.用户可以创建自己的工具栏
B.用户可以修改自己的工具栏
C.用户可以删除自己创建的工具栏
D.用户可以删除系统工具栏
第14题:
欲新建一个电路原理图文件应该执行()操作。
第15题:
Which two construct an OutputSream that appends to the file “file.txt”? ()
第16题:
Word6.0允许用户自定义屏幕上所显示的工具栏,可以修改、删除或增加工具栏。
第17题:
下面关于工具栏的叙述,错误的是()
第18题:
下面关于工具栏的叙述,不正确的是()。
第19题:
Which gets the name of the parent directory file “file.txt”?()
第20题:
用户可以创建自己的工具栏
用户可以修改系统工具栏
用户可以删除用户创建的工具栏
用户可以删除系统工具栏
第21题:
InputStream in=new FileReader(“file.txt”);
InputStream in=new FileInputStream(“file.txt”);
InputStream in=new InputStreamFileReader (“file.txt”, “read”);
FileInputStream in=new FileReader(new File(“file.txt”));
FileInputStream in=new FileInputStream(new File(“file.txt”));
第22题:
工具栏可以显示或隐藏
可以修改和删除系统提供的工具栏
用户可以创建自己的工具栏
可以删除用户创建的工具栏
第23题:
Compilation fails.
Nothing is added to the file system.
Only a new file is created on the file system.
Only a new directory is created on the file system.
Both a new file and a new directory are created on the file system.