Thursday 26 November 2015

Java Lab@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   https://drive.google.com/open?id=0B-yL1mP3zqTbRE9Kd0pVaXdaMU0


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


Ans   https://drive.google.com/open?id=0B-yL1mP3zqTbVi1mMVZRMUdIWVk


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


Ans   https://drive.google.com/open?id=0B-yL1mP3zqTbVUxXcm5oQjRMa3M

No comments:

Post a Comment