Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

the undo and redo implementation in Java

I want to ask a question about List in Java.

It is easy to implement delete,add and search an element in a list. But how to implement the undo and redo of a list in Java?

can anyone help me on this?


1 Answers

You might be looking to implement a Command Design Pattern for this. A decent simplified example for List can be found here http://www.algosome.com/articles/implementing-undo-redo-java.html

like image 81
Benjamin Udink ten Cate Avatar answered Aug 28 '26 01:08

Benjamin Udink ten Cate



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!