About Question enthuware.ocpjp.v17.2.1925 :

Help and support on OCA OCP Java Programmer Certification Questions
1Z0-808, 1Z0-809, 1Z0-815, 1Z0-816, 1Z0-817

Moderator: admin

Post Reply
sypham2909
Posts: 3
Joined: Thu Oct 19, 2023 12:49 pm
Contact:

About Question enthuware.ocpjp.v17.2.1925 :

Post 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());

admin
Site Admin
Posts: 10065
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

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

Post by admin »

You are right. Fixed.
thank you for your feedback!
If you like our products and services, please help us by posting your review here.

Post Reply

Who is online

Users browsing this forum: No registered users and 216 guests