Java File create directory

Description

Java File create directory

import java.io.File;

public class Main {
  public static void main(String[] args) {

    File newDir = new File("C:/demo/demo2s.com/home");
    boolean created = newDir.mkdir();
    System.out.println(created);/*from   w w  w  .j  a va2s. c o  m*/

  }
}



PreviousNext

Related