Tests whether the file or directory is hidden or not.
Tests whether the file or directory is hidden or not.
The isHidden method of file class can be used for checking whether a file or directory is hidden or not.
package io;
import java.io.File;
public class FileExample {
public static void main(String[] args){
File file = new File("d:\\temp\\test.txt");
// Tests whether the file object is hidden or not.
boolean value = file.isHidden();
System.out.println(value);
}
}
Tags: File, file class examples, File examples, java.io, java.io.File
You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.
Leave a Reply