Here you can find the source of mkdir(String folderpath)
public static boolean mkdir(String folderpath)
//package com.java2s; //License from project: Open Source License import java.io.File; public class Main { public static boolean mkdir(String folderpath) { boolean status = true; File file = new File(folderpath); if (file.exists()) { status = false;/*from w ww . j av a2 s . co m*/ } else { file.mkdir(); System.out.println("Mkdir: " + folderpath); } return status; } }