new to java system cant find path

You have syntax error in your program , try this :

public class cn {

   public static void main(String[] args) { f; listroot = new"c:/");[] files = listroot.listFiles();

      System.out.println("Print root files from c:");

      for ( file : files) {
         if (file.isDirectory())

Above program working in Eclipse ide.

Browse More Popular Posts

Leave a Comment