阅读背景:

java.io.File构造函数行为还是多线程问题?

来源:互联网 

I have the following code:

我有以下代码:

class Abcd{
//wired by spring to give the directory filePath ="/var/tmp/"
private String filePath;

 public void myMethod(String id, String date){
  filePath= filePath+ id+ "_" + date;
  File f = new File(filePath);
  if(f.exists){//Do something}
  else{
   System.out.println("File not found at file path:"+filePath);
  }
 }
}
class Ab



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: