請問java點做到"detect 唔到file"既情況

點樣做到呢個statment:
if (file=notfound)

本身用
File file = new File(fileName);

TOP