i pretty much wrked thru every method except the "Undo" method...
public void delete(int m, int n);
current is positioned at line m and lines m through n will be removed. After deletion, the line after line n will be the current line.
public void insert(String s);
The parameter string is the new line to be inserted. If there is no current line in the text, the line is attached to the end of the text. Otherwise, the new line will be added before the current line.
public void moveCursorTo(int m);
current is positioned at m.
public void replace(String oldValue, String newValue);
All the occurrences of oldValue is replaced by newValue in the current line.
public void undo();
This method will undo the one step preceding function.
public String display();
It returns a String that represents the text. Suppose there are two lines in the text,