84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
java新手,在看到java的文件目录操作的时候,发现有个问题自己想的和网上找到的不一样,因此到这里求前辈解答,谢谢。
问题就是:如何判断目录存在,if的条件语句该怎么写
ringa_lee
File f = new File("[dir]"); if (f.exists())
Just use the exists() function
exists()
Just use the
exists()
function