Sunday, 13 December 2015

Java Lab@home 13

1. Use the Files.readAllLines method to read the entire contents oftwo files: a form template, and a list of names to send form letters to. After creating a form letterwith a name from the name list, you will use the Files.write method to create the customletter. You will also use the Pattern and Matcher classes that you saw in the "StringProcessing" lesson.


Ans   CLICK HERE



2.  Write Java classes that use the FileVisitor class to recursively copy onedirectory to another.

Ans   CLICK HERE



3.  Write a Java main that creates a PathMatcher class and usesFileVisitor to recursively delete a file or directory pattern.


Ans   CLICK HERE

No comments:

Post a Comment