InputStream inputStream =new FileInputStream("D://download//file//test.txt");我在写这句话的时候 老是提示我:Unhandled exception type FileNotFoundException不知道为什么,请高手指点。

解决方案 »

  1.   

    这段代码是要抛出异常的,
    必须进行try{} catch{} [finally{}]捕获或者外抛...
      

  2.   

    路径错误,改成这样就行了InputStream inputStream =new FileInputStream("D:\\download\\file\\test.txt");
      

  3.   


    InputStream inputStream =new FileInputStream("D://download//file//test.txt");如果你是eclipse你直接把光标放到这句话,按ctrl+1然后回车,你的路径是有问题应该是2楼的