JAVA如何新建一个文件夹

File file = new File("// 地址/");//记得地址末尾要加/;
file.mkdir();//该方法会返回bool值表示是否创建成功          

百度:

https://jingyan.baidu.com/article/ed2a5d1f0e220249f7be1716.html

猜你喜欢

转载自www.cnblogs.com/rtyxxy/p/12510045.html