The data.doc, data.txt and data.xml files are accessible and contain text.
Given the code fragment:
Stream<Path> paths = Stream.of (Paths. get("data.doc"),
Paths. get("data.txt"),
Paths. get("data.xml"));
paths.filter(s-> s.toString().contains("data")).forEach(
s -> {
try {
Files.readAllLines(s)
.stream()
.forEach(System.out::println); //line n1
} catch (IOException e) {
System.out.println("Exception");
}
}
);
What is the result?
sansay61
Highly Voted 4 years, 1 month agofffff
Highly Voted 3 years, 12 months ago6c84cb9
Most Recent 5 months, 4 weeks agoasdfjhfgjuaDCV
11 months agosteefaand
12 months agoiSnover
1 year agoShad657
1 year, 6 months agotuyetan
1 year, 8 months agoshivkumarx
10 months, 2 weeks agoKim514
1 year, 10 months agolchowen
2 years, 4 months agoWilsonKKerll
2 years, 10 months agoaymanj
3 years, 10 months agovarconite
4 years, 1 month agomjcotan
3 years, 4 months ago