Saturday, 8 July 2017

Listing the File System Roots Assignment in java ~ foundjava

Listing the File System Roots

     public static void main(String args[]){
         try{
         File[] roots = File.listRoots();
             for (int i=0; i             System.out.println((roots[i]));
         }
     }
         catch (Exception ioe){
         ioe.printStackTrace();
     }
}

No comments:

Post a Comment