Question: JAVA: Write a single-threaded (must be in thread) program that takes every .txt files in a directory as inputs, copies each content in each input
JAVA: Write a single-threaded (must be in thread) program that takes every .txt files in a directory as inputs, copies each content in each input text files. and creates new output files in a different directory that is named after each input text file. Make sure thread does not end until every input file has been read by the program.
example:
assume input1.txt has "hello world"
output1.txt should have "hello world", too.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
