Apply undo,redo operations on string pool. please friends help me to get its answer.
vivekH
0
Light Poster
Recommended Answers
Jump to PostWell, you just treat the string with state. You must have 2 dynamic collection variables (possibly
ArrayList
) to handle this task. When something is changed, add to undo. When something is undo, pop the item out from the undo list and add it to redo list (and vice versa). If …
Jump to Postas Taywin says, you'll need an entire structure to do this. you can't do such on a String itself, since a String is immutable
All 5 Replies
Taywin
312
Posting Virtuoso
stultuske
1,116
Posting Maven
Featured Poster
janissantony
15
Light Poster
vivekH
0
Light Poster
janissantony
15
Light Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.