Here you can find the source of mkdir(File f)
public static void mkdir(File f)
//package com.java2s; //License from project: Open Source License import java.io.File; public class Main { public static void mkdir(File f) { if (!f.exists()) { f.mkdir();// w w w . j av a2 s.c om } } }