q5_1

所属分类:Java编程
开发工具:Java
文件大小:2KB
下载次数:7
上传日期:2013-06-05 22:22:43
上 传 者cuifan
说明:  1) 编写一个图形化小工具,功能类似系统工具dir,可查看用户给定文件的创建时间、文件类型、文件大小等信息。 提示: 创建时间、文件大小等信息可直接通过file类取得,文件类型需要写方法判断,接受用户输入的文件名,截取其后缀,根据其后缀判断文件的类型。例如后缀为.java的是Java的源程序文件,后缀为.txt的是文本文件。注意提高程序的容错性(输入的格式的多样性和不确定性)。
(A) preparation of a graphical gadgets, functionally similar system tools dir, given by the user can view the file creation time, file type, file size, and other information. Tip: creation time, file size and other information can be obtained directly through the file type, file type, methods need to write judgments, accept user input file name, the interception of the suffix, according to its extension to determine the file type. For example suffix. Java is a Java source file, the suffix of. Txt is a text file. Note improve program fault tolerance (input format diversity and uncertainty).)

文件列表:
q5_1.java (3946, 2009-05-26)

近期下载者

相关文件


收藏者