扫码下载编程狮APP
import java.io.File; public class Main { public static void deleteFolder(File f) { File[] files = f.listFiles(); for (File fi : files) { if (fi.isDirectory()) { deleteFolder(fi); } fi.delete(); } } }
联系方式:
扫描二维码
下载编程狮App
扫码关注 领资料包