Hi,
Is there a design
pattern or OO concept I can use to abstract a
Java data structure in an interface design? I want to be able to accept data structures no matter if they are a List, Stack, or Map, and be able to access values from it in the implementation class.
For example, if I pass in: ['1','2','3','4'] to have it reversed and returned as: ['4','3','2','1'], is there a way to do this no matter the data structure?
Thanks,
Anthony