sunklay69
08-28-2005, 04:44 AM
I was doing a homework, well i was trying to do this,but I realize that I would not under stand this i somebody don't explain me this shh....
I need to do an public interface of the class WordProcessor
* WordProcessor()
o creates an object in the class.
* void append(String text)
o Insert the text on "text" that will be on the bottom of the program.
* void replace(String search, String newText)
o replace the document on "search" with the text on "newText"
* void insert(String text, int position)
o insert the text on the position indicated
* void remove(String text)
o remove from the document things.
* void display()
o display the text
the tester will be like this
1. create an intance of WordProcessor
2. append the text.
3. display the text
4. replace three words form the text, and display the change
5. insert three lines of text, in separate form, display the change
6. eliminate three words from the document, display the change
I want to learn but I don't know how to start, please help with some thing.
I need to do an public interface of the class WordProcessor
* WordProcessor()
o creates an object in the class.
* void append(String text)
o Insert the text on "text" that will be on the bottom of the program.
* void replace(String search, String newText)
o replace the document on "search" with the text on "newText"
* void insert(String text, int position)
o insert the text on the position indicated
* void remove(String text)
o remove from the document things.
* void display()
o display the text
the tester will be like this
1. create an intance of WordProcessor
2. append the text.
3. display the text
4. replace three words form the text, and display the change
5. insert three lines of text, in separate form, display the change
6. eliminate three words from the document, display the change
I want to learn but I don't know how to start, please help with some thing.