How to perform Undo(remove last entered string) and Redo(add it back) Operations on Strings ? ( using Core Java data structures ) : How to perform Undo(remove last entered string) and Redo(add it back) Operations on Strings ? ( using Core Java data structures  ) .


This was an interview question,which expected , creating our own pool of strings (asking for number of strings and strings from user)
UNDO : removing last string from
Redo : Adding it back