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

EBK JAVA PROGRAMMING
8th Edition
ISBN:9781305480537
Author:FARRELL
Publisher:FARRELL
Chapter16: Graphics
Section: Chapter Questions
Problem 1DE
icon
Related questions
Question

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 

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
File Input and Output Operations
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781305480537
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT