Java File check if a file is hidden
import java.io.File; public class Main { public static void main(String[] args) { File file = new File("Main.txt"); System.out.println(file.isHidden()); }//from ww w . j a v a 2 s . c om }