Java tutorial
import java.io.IOException; import java.nio.file.FileSystems; import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.attribute.FileAttribute; import java.nio.file.attribute.PosixFilePermission; import java.nio.file.attribute.PosixFilePermissions; import java.util.Set; public class Main { public static void main(String[] args) { Path newdir_1 = FileSystems.getDefault().getPath("C:/tutorial/Java/2010/"); try { Files.createDirectory(newdir_1); } catch (IOException e) { System.err.println(e); } } }