Page 1 of 1

About Question enthuware.ocpjp.v17.2.1925 :

Posted: Wed Oct 25, 2023 1:28 pm
by sypham2909
For the explanation of the last answer:
Note that if you have a File instead of a Path, you may convert the File object to a Path object using File's toFile() method:
File file = new File(filePath);
Stream<String> ref = Files.lines(file.toPath());
It should be:
Note that if you have a File instead of a Path, you may convert the File object to a Path object using File's toPath() method:
File file = new File(filePath);
Stream<String> ref = Files.lines(file.toPath());

Re: About Question enthuware.ocpjp.v17.2.1925 :

Posted: Thu Oct 26, 2023 3:53 am
by admin
You are right. Fixed.
thank you for your feedback!