fcreate folder in java code example
Example 1: java create folder
new File("pathToFile").mkdir();
Example 2: how to create folder java
Path path = Paths.get("/home/mkyong/a/b/c/");
//java.nio.file.Files;
Files.createDirectories(path);
new File("pathToFile").mkdir();
Path path = Paths.get("/home/mkyong/a/b/c/");
//java.nio.file.Files;
Files.createDirectories(path);