Java 实例 - 判断文件是否隐藏
Java 教程
· 2019-02-11 06:27:02
以下实例演示了使用 File 类的 file.isHidden() 方法来判断文件是否隐藏:
Main.java 文件
import java.io.File;
public class Main {
public static void main(String[] args) {
File file = new File("C:/Demo.txt");
System.out.println(file.isHidden());
}
}
以上代码运行输出结果为(Demo.txt为隐藏文件):
True
点击查看所有 Java 教程 文章: https://codercto.com/courses/l/12.html
XML Hacks
Michael Fitzgerald / O'Reilly Media, Inc. / 2004-07-27 / USD 24.95
Developers and system administrators alike are uncovering the true power of XML, the Extensible Markup Language that enables data to be sent over the Internet from one computer platform to another or ......一起来看看 《XML Hacks》 这本书的介绍吧!