import java.io.*;
class Main{
public static void main(String[] args) throws IOException{
File path=new File("D:\\jlp1\\jlp2");
File file=new
File(path,"jlp.java");
path.mkdirs();
file.createNewFile();
System.out.println("It‘s
OK.");
}
}
原文:http://www.cnblogs.com/lpjia/p/3739430.html