I have List<List<MyObj>>
.
List(1) : List<MyObj>
List(2) : List<MyObj>
List(3) : List<MyObj>
... & so on.
Structure of MyOBj is:
class MyObj {
String name;
String type;
}
I have to get name from MyObj, if type is same for any 2 entries present in List>. What will be the optimal way to do that in java 7?