java given a text file (data1.txt) that consists of different garbage strings. 1.Create a new file, from data1.txt, which contains all the strings from the previous file with the following...


java



given a text file (data1.txt) that consists of different garbage strings.


1.Create a new file, from data1.txt, which contains all the strings from the
previous file with the following constraints:
-No special characters or digits must be in the new string
-No repetition of letters in the new string
• Save the newly generated text-file as data2.txt
The following example in table 1 shows what your output file should contain.
data1.txt        data2.txt
f5@p              fp
p&ott6           pot
Instructions:
Create a class cleanFile to read in data1.txt
Clean the data inside the files following the rules in the above example
Write the cleaned data into data2.txt



Jun 03, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here