Here you can find the source of mkdir(String mkdirName)
public static boolean mkdir(String mkdirName)
//package com.java2s; /**//w ww . ja va2 s. co m * Copyright (c) 2014 http://www.lushapp.wang * * Licensed under the Apache License, Version 2.0 (the "License"); */ import java.io.*; public class Main { public static boolean mkdir(String mkdirName) { try { File dirFile = new File(mkdirName); boolean bFile = dirFile.exists(); if (bFile) { return true; } else { bFile = dirFile.mkdir(); return bFile; } } catch (Exception err) { return false; } } }