Java 如何創(chuàng)建目錄
提問(wèn)人:劉旭39發(fā)布時(shí)間:2020-11-28
import java.io.File;
//創(chuàng)建目錄
public class DirDemo {
public static void main(String[] args) {
String dirName = "java";
File file = new File(dirName);
System.out.println("創(chuàng)建目錄Java,是否成功:"+file.mkdirs());
}
}
繼續(xù)查找其他問(wèn)題的答案?
相關(guān)視頻回答
點(diǎn)擊加載更多評(píng)論>>