You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think that replace "lambdasinaction/chap3/data.txt" with ExecuteAround.class.getResource("/lambdasinaction/chap3/data.txt").getPath() should solve the problem.
The text was updated successfully, but these errors were encountered:
Swap out new FileReader("lambdasinaction/chap3/data.txt") with new InputStreamReader(ClassLoader.getSystemResourceAsStream("lambdasinaction/chap3/data.txt")) and it works correctly.
You can swap for : try (BufferedReader br = new BufferedReader(new FileReader("src/main/resources/lambdasinaction/chap3/data.txt"))) {
with absolute path.
I think that replace
"lambdasinaction/chap3/data.txt"
withExecuteAround.class.getResource("/lambdasinaction/chap3/data.txt").getPath()
should solve the problem.The text was updated successfully, but these errors were encountered: