Home > Back-end >  Questions about the stream
Questions about the stream

Time:11-23

1, List2. List
Obj1 categories:

Print int id;
Print int the name;


Obj2 categories:
Print int id;
Print int p_name;

Print List

Like my aa there are 10 data, BB there were 20 data values of all attributes in the list above,

I have to do now:
Loop 2 bb. Getlist (), by ID=AA. ID, to find the name after the assignment to bb. Getlist. P_name attribute

Way to use steam, I wrote half write not bottom go to,

I use the
Bb. Steam (). The filter (x - & gt; Aa. Steam (). The filter (y - & gt; X.g etid==y.g etid)). The foreach (x & gt; X.s etp_name (y.g etname)

As it will go wrong,,
  • Related