question archive How would I remove lines in a file that contain only non-alphanumeric characters is removed using java? For example: File content before: Hello Beatrice albert @#$% #%Albert --''--911 hello File content after: Hello Beatrice albert #%Albert --''--911 hello
Subject:Computer SciencePrice: Bought3
How would I remove lines in a file that contain only non-alphanumeric
characters is removed using java? For example:
File content before:
Hello
Beatrice
albert
@#$%
#%Albert
--''--911
hello
File content after:
Hello
Beatrice
albert
#%Albert
--''--911
hello