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
Algorithms
Sanjoy Dasgupta、Christos H. Papadimitriou、Umesh Vazirani / McGraw-Hill Education / 2006-10-16 / GBP 30.99
This text, extensively class-tested over a decade at UC Berkeley and UC San Diego, explains the fundamentals of algorithms in a story line that makes the material enjoyable and easy to digest. Emphasi......一起来看看 《Algorithms》 这本书的介绍吧!