java method to make a directory code example Example: java create folder new File("pathToFile").mkdir();