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?
Question&Answers:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…