本帖最后由 李娟 于 2011-12-23 23:13 编辑
import java.io.*;
class FileDemo
{
public static void main(String[] args) throws IOException
{
method_5();
}
public static void method_5() throws IOException
{
File f1 = new File("d:\\Test.java");
File f2 = new File("d:\\hahah.java");
sop("rename:"+f1.renameTo(f2)); //运行结果为false,这是怎么回事
} |
|