Month: January 2022

1. Write a java program to create a class called FileWatcher that can be given several filenames. The class should start a thread for each file name. If the file exists, the thread will write a message to the console and then end. If the file does not exist, the thread will check for the existence of its file after every 5 seconds till the file gets created.

Write a program of java to create a class FileWatcher that can be given several filenames. Java Programming 2 / Assignment 5 / Set C Java Program File: The Java…