62,614
社区成员
发帖
与我相关
我的任务
分享
import java.io.*;
public class A {
public static void main(String[] args) {
File fdir = new File("AA");
if (false == fdir.exists())
fdir.mkdir();
File f = new File(fdir.getAbsolutePath() + "/" + "123.txt");
if (false == f.exists())
try {
f.createNewFile();
} catch (IOException e) {
e.printStackTrace();
}
}
}