the problem is in 9th row, last token ";" plz help, quick fix no suggestions...import java.io.File; public class ModDetector{ public static class Detect{ File folder = new File("c:/"); File[] listOfFiles = folder.listFiles(); for (int i = 0; i < listOfFiles.length; i++) { if (listOfFiles[i].isFile()) { System.out.println("File " + listOfFiles[i].getName()); } else if (listOfFiles[i].isDirectory()) { System.out.println("Directory " + listOfFiles[i].getName()); } } } } }