How can I convert this code as per java8 having an inner list inside a parent list and do filtering?
for(A aobj: branchList) {
for(C cobj : aobj.getCList()) {
if(!enteredBranchId.equals(cobj.getId())
myList.add(aobj.getId());
}
}