File Path = new File("..");//The current dir
if (Path.exists()){
String[] fileList = delPath.list();
for (int i = 0; i < fileList.length; i++) {
System.out.println(fileList[i]); //print out all the filename and dir.
}
}
if (Path.exists()){
String[] fileList = delPath.list();
for (int i = 0; i < fileList.length; i++) {
System.out.println(fileList[i]); //print out all the filename and dir.
}
}
解决方案 »
- JAVA 对 int 高性能累加
- 编译通过,运行报错,请高手指导,谢谢!
- 安装SQL2005时提示已经存在更高版本..怎么解决?
- 求救,关于对象流 读写的问题.
- 请教各位朋友!谢谢!!
- tomcat的问题,熟悉的进来讨论一下
- 请教将一个BufferedImage对象生成一个gif或者jpeg图片的方法?
- My first Java PG :Anyone can help me to add the print function ?
- 请问哪儿有大量的SCJP考试的模拟试题及模拟软件下载?多谢!
- 怎样知道两个java程序是否在一个jvm中?
- java手机 开发者请进!
- 使用jdbc访问sqlserver的问题
new FileInputStream("configinfo.xml")应该能加载的
或
File file = new File( Test.class.getResource(("configinfo.xml").getPath());