how to create directory in windows using java code example Example: java create folder new File("pathToFile").mkdir();