Here you can find the source of makeDirectory(String newDirString)
public static void makeDirectory(String newDirString)
//package com.java2s; //License from project: Open Source License import java.io.File; public class Main { public static void makeDirectory(String newDirString) { File file = new File(newDirString); if (!file.exists()) { if (file.mkdir()) { System.out.println("\ninfo: Directory was created!\n"); } else { System.out.println("\nerror: Failed to create directory!\n"); }/*w ww. ja v a2 s .com*/ } } }