import javax.imageio.*; import java.awt.image.*; import java.awt.*; import java.security.NoSuchAlgorithmException; import java.security.MessageDigest; import java.lang.reflect.*; import java.net.*; import java.io.*; import javax.swing.*; import java.util.regex.*; import java.util.List; import java.util.zip.*; import java.util.*; public class main { public static void main(String[] args) throws Exception { String dirToList = "."; File d = new File(dirToList); if (d.isDirectory()) { for (File f : d.listFiles()) { boolean isDir = f.isDirectory(); System.out.println((isDir ? "D" : "F") + " " + f.getName()); } } } }