Here you can find the source of MakeDir(String dirName)
public static void MakeDir(String dirName) throws IOException
//package com.java2s; //License from project: Open Source License import java.io.File; import java.io.IOException; public class Main { public static void MakeDir(String dirName) throws IOException { File dir = new File(dirName); if (!dir.exists()) { //System.out.println("Creating directory: " + dirName); boolean result = dir.mkdirs(); if (!result) { System.out.println("Directory cannot be created: " + dirName); }//from w w w. j a v a 2 s . co m } } }