文件名称:T4
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:3.97kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
目录和文件时磁盘树形结构中最基本的组成单元,Java用File类来统一表示它们,
* 并通过File类来完成目录和文件的创建、删除、查询等操作。
* 手工创建d:\test文件夹,编写一个Java程序,
* 遍历“d:\test”文件夹,如果文件夹为空,则创建一个新文件a.txt,并把此文件的名称打印出来;
* 如果文件夹不为空,那么将该文件夹下的文件和目录遍历以后,
* 按照目录和文件类型,分类把目录名称和文件名分称打印出来。-Basic constituent units of disk tree structure of directories and files, Java File class unified representation,* and through the File class to complete the creation of directories and files, delete, query and other operations.* Manually create d: \ the test folder, write a Java program, the* traverse " d: \ test" folder, if the folder is empty, create a new file a.txt and print out the name of this file * If the folder is not empty, then after the folder under the file and directory traversal* in accordance with the directory and file type, classified directory name and file birthright said print it out.
* 并通过File类来完成目录和文件的创建、删除、查询等操作。
* 手工创建d:\test文件夹,编写一个Java程序,
* 遍历“d:\test”文件夹,如果文件夹为空,则创建一个新文件a.txt,并把此文件的名称打印出来;
* 如果文件夹不为空,那么将该文件夹下的文件和目录遍历以后,
* 按照目录和文件类型,分类把目录名称和文件名分称打印出来。-Basic constituent units of disk tree structure of directories and files, Java File class unified representation,* and through the File class to complete the creation of directories and files, delete, query and other operations.* Manually create d: \ the test folder, write a Java program, the* traverse " d: \ test" folder, if the folder is empty, create a new file a.txt and print out the name of this file * If the folder is not empty, then after the folder under the file and directory traversal* in accordance with the directory and file type, classified directory name and file birthright said print it out.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
T4.doc
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.