文件名称:Folder
-
所属分类:
- 标签属性:
- 上传时间:2012-10-30
-
文件大小:1.53kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
6、 编写一个Java应用程序,文件名为Folder.java,编译后执行结果如下图所示,实现指定文件夹下目录和文件的文本形式的树状结构显示。要求:
1. 输入: java Folder,显示当前文件夹下的目录和文件的文本形式树状显示;
2. 输入: java Folder C:\test>,显示C:\test文件夹下的目录和文件的文本形式树状显示;(C:\test可以为任意文件夹路径名)
3. 输入: java Folder add aa,在当前文件夹下面添加一个子目录(子目录名为:aa),同时显示当前文件夹下的最新目录和文件的文本形式树状显示;
4. 输入: java Folder del aa,在当前文件夹下面删除一个子目录(子目录名为:aa),同时显示当前文件夹下的最新目录和文件的文本形式树状显示;(30分)
-6, write a Java application, file name Folder.java, compiled results of the implementation as shown below, to achieve the specified folders and files under the directory tree structure displayed in text form. Requirements:
1. Enter: java Folder, shows the current folder and files under the directory tree displayed in text form
2. Enter: java Folder C: \ test>, shows C: \ test folder under the directory tree and display text files (C: \ test folder path can be any name)
3. Enter: java Folder add aa, following in the current folder to add a subdirectory (subdirectory named: aa), also shows the current folder and files under the latest catalog tree display text form
4. Enter: java Folder del aa, following in the current folder delete a subdirectory (subdirectory named: aa), also shows the current folder and files under the latest catalog tree display text form (30 points)
1. 输入: java Folder,显示当前文件夹下的目录和文件的文本形式树状显示;
2. 输入: java Folder C:\test>,显示C:\test文件夹下的目录和文件的文本形式树状显示;(C:\test可以为任意文件夹路径名)
3. 输入: java Folder add aa,在当前文件夹下面添加一个子目录(子目录名为:aa),同时显示当前文件夹下的最新目录和文件的文本形式树状显示;
4. 输入: java Folder del aa,在当前文件夹下面删除一个子目录(子目录名为:aa),同时显示当前文件夹下的最新目录和文件的文本形式树状显示;(30分)
-6, write a Java application, file name Folder.java, compiled results of the implementation as shown below, to achieve the specified folders and files under the directory tree structure displayed in text form. Requirements:
1. Enter: java Folder, shows the current folder and files under the directory tree displayed in text form
2. Enter: java Folder C: \ test>, shows C: \ test folder under the directory tree and display text files (C: \ test folder path can be any name)
3. Enter: java Folder add aa, following in the current folder to add a subdirectory (subdirectory named: aa), also shows the current folder and files under the latest catalog tree display text form
4. Enter: java Folder del aa, following in the current folder delete a subdirectory (subdirectory named: aa), also shows the current folder and files under the latest catalog tree display text form (30 points)
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Folder.java
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.