Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
//License from project: Apache License 

import java.io.File;

public class Main {
    public static boolean mkdir(String path) {
        File file = new File(path);
        if (file.isDirectory())
            return true;
        else {
            boolean creadok = file.mkdirs();
            if (creadok) {
                return true;
            } else {
                return false;
            }
        }
    }
}