Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import java.io.File;

public class Main {

    public static void deletePcFile(String... path) {
        if (path != null) {
            for (int i = 0; i < path.length; i++) {
                if (null != path[i] && (!"".equals(path[i]))) {
                    File file = new File(path[i]);
                    if (file.exists()) {
                        file.delete();
                    }
                }
            }
        }
    }
}