String path2 = "c:\\1";
File temp = new File(path2);
if(!temp.isDirectory()) temp.mkdir();
File temp = new File(path2);
if(!temp.isDirectory()) temp.mkdir();
解决方案 »
- 请问:用GCJ编译Java源文件成脱离JRE的exe可执行文件的问题
- 先装了一个iis(运行asp程序的),现在装一个weblogic7.0,里面有个server listen port :7001 server ssl liten port:7002
- mac操作系统上,如何打开一个本地的html文件
- 请问怎样可以把JAR文件打包成exe
- 请问哪里有放大镜的java源程序?
- poi 如何实现中单元格的垂直居中对齐且水平居中对齐?
- ArrayList保存对象?
- ■求教,如何让图片覆盖整个 JButton 按纽■
- 新手有点问题想咨询下大神~~~!
- 求助Eclipse2019-6版本安装老是报错。
- 帮我看看
- 关于Popup的问题
f.mkdir();
Properties properties = System.getProperties();
String s = new String(properties.getProperty("user.dir"));
String w = "dog";
File temp = new File(s+"\\"+w);
if(!temp.isDirectory()) temp.mkdir();dog就是你要创建的目录名
File temp = new File(path2);
if(!temp.isDirectory()) temp.mkdir();