Here you can find the source of mkdirIfMissing(File dir)
private static Boolean mkdirIfMissing(File dir)
//package com.java2s; //License from project: Open Source License import java.io.*; public class Main { private static Boolean mkdirIfMissing(File dir) { return !dir.exists() && dir.mkdir(); }/* w ww . j a va 2 s . co m*/ }