new File(String parent,String child)

//user_dir:E:\workspace\javatest
//File file =  new File(String parent,String child);
//File 为E:\workspace\javatest\testfile
File testfile=new File(System.getProperty("user.dir"), "testfile");
testfile.mkdir();

你可能感兴趣的:(String)