I am looking to implement a functionality in a list of object as I would in C# using an extension method.

Something like this:

List<DataObject> list;
// ... List initialization.
list.getData(id);

How do I do that in Java?

14 Answers
14

Leave a Reply

Your email address will not be published. Required fields are marked *