1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
import
java.io.File;
public
class
$ {
public
static
void
main(String[] args) {
String path =
"D:/"
;
test(path);
}
private
static
void
test(String path) {
File f =
new
File(path);
File[] fs = f.listFiles();
if
(fs ==
null
) {
return
;
}
for
(File file : fs) {
if
(file.isFile()) {
System.out.println(file.getPath());
}
else
{
test(file.getPath());
}
}
}
}
|
因篇幅问题不能全部显示,请点此查看更多更全内容
Copyright © 2019- oldu.cn 版权所有 浙ICP备2024123271号-1
违法及侵权请联系:TEL:199 1889 7713 E-MAIL:2724546146@qq.com
本站由北京市万商天勤律师事务所王兴未律师提供法律服务