A
Andrew Tegala
Dear All,
I would like help with creation of a few Java Programs.
Mainly, a program to change the extension of a file, from .txt to
..lst. It needs to take teh filename as a command line argument and
outputs a 'list' file.
For example the text file, "test.txt"
This is a
small text file
The end.
Would be produce a file, "test.lst"
1 This is a
2 small text file
3 The end.
Another program I need help with is to take student details from a
text file and output the e-mail address.
Using the String, StringTokenizer and StringBuffer classes.
The details are in the form of "surname:firstname:id"
output should be
first character of firstname + first character of surname + last for
digits of the id + "domain.ac.uk"
e.g. makeEmail("Smith:John:83702794") returns "(e-mail address removed)"
Your help is greatly appreciated. Kind regards,
Andrew Tegala
I would like help with creation of a few Java Programs.
Mainly, a program to change the extension of a file, from .txt to
..lst. It needs to take teh filename as a command line argument and
outputs a 'list' file.
For example the text file, "test.txt"
This is a
small text file
The end.
Would be produce a file, "test.lst"
1 This is a
2 small text file
3 The end.
Another program I need help with is to take student details from a
text file and output the e-mail address.
Using the String, StringTokenizer and StringBuffer classes.
The details are in the form of "surname:firstname:id"
output should be
first character of firstname + first character of surname + last for
digits of the id + "domain.ac.uk"
e.g. makeEmail("Smith:John:83702794") returns "(e-mail address removed)"
Your help is greatly appreciated. Kind regards,
Andrew Tegala