// delete a directory // delDir.java // yyang
import java.io *;. import java.util *;. public class DelDir {private static void deletefile (File delpath) throws FileNotFoundException, IOException {File [] filelist = delpath.listFiles (); if (filelist.length = 0! ) {For (INT i = 0; I