How to create directory in Java

In this tutorial, I am writing simple program about How to create directory in Java.

The new directory can be created using Java with help of mkdir() method. Which is part of java.io.File class. If the directory is created successfully it will return true. It will return false if the directory is already available. The example program were attached in the post.

CreatingDirectoryExample.java

References

1. Java API Documentation