Here you can find the source of mkdir(String directory)
public static boolean mkdir(String directory)
//package com.java2s; /*/*from w ww .j av a 2s . c o m*/ * Copyright (c) 2010, James Hanlon * All rights reserved. * * Made available under the BSD license - see the LICENSE file */ import java.io.File; public class Main { public static boolean mkdir(String directory) { if (!(new File(directory)).exists()) return (new File(directory)).mkdir(); return true; } }