Java says FileNotFoundException but file exists

前端 未结 10 1494
遇见更好的自我
遇见更好的自我 2020-11-22 10:19

I have an assignment for my CS class where it says to read a file with several test scores and asks me to sum and average them. While summing and averaging is easy, I am hav

10条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-11-22 10:44

    Use single forward slash and always type the path manually. For example:

    FileInputStream fi= new FileInputStream("D:/excelfiles/myxcel.xlsx");
    

提交回复
热议问题