java create directory if not exists

Java
String path = ...
File pathAsFile = new File(path);

if (!Files.exists(Paths.get(path))) {
	pathAsFile.mkdir();
}
Source

Also in Java: