Practical 5 - Text Processing PDF
Practical 5 - Text Processing PDF
Write a program that processes the text file textProcessing.txt. The text file
contains a number of lines of text.
someone@somewhere.net
1
Notice that the address contains no spaces and has an @ sign followed by at least
one period (.). Programs such as this scan through web pages looking for e-mail
addresses that become the targets of spam. Because of this, many web pages
contain disguised e-mail addresses that can’t easily be automatically extracted.
Your program should find 12 email addresses in the text file emailtext.txt.
The braces in the Althlete.java file match perfectly. So you should have
equal counts for opening and closing braces. You can then add and remove
them from the file to check if your program works as expected.
Your code should write the following headers to a the file headers.doc:
• public class Athlete() {
• public class Athlete(String name, int age) {
• public String getName() {
• public int getAge() {
• public double getBestThrow() {
• public String toString() {
• private double getMinIndex() {
• public void update(double newThrow) {