Home > Back-end >  A List <a List <String> set out each column data into a new collection List <List <St
A List <a List <String> set out each column data into a new collection List <List <St

Time:09-24

Everyone a great god, and ask a question: will a List Set out each column data into a set of new List

CodePudding user response:

His every piece of data is not List The type?

CodePudding user response:

reference 1st floor ws_tan response:
his every piece of data is not List The type?
want to get is the result of the List Type of

CodePudding user response:

Are you want to put the data in a new list collection?

CodePudding user response:

refer to the second floor pursuit_by_happiness response:
Quote: refer to 1st floor ws_tan response:

His every piece of data is not List The type?
want to get is the result of the List Type

[images]

CodePudding user response:

reference 4 floor ws_tan response:
Quote: refer to the second floor pursuit_by_happiness response:

Quote: refer to 1st floor ws_tan response:

His every piece of data is not List The type?
want to get is the result of the List Type

[images]

CodePudding user response:

reference 5 floor ws_tan reply:
Quote: refer to 4th floor ws_tan response:

Quote: refer to the second floor pursuit_by_happiness response:

Quote: refer to 1st floor ws_tan response:

His every piece of data is not List The type?
want to get is the result of the List Type

[images]

The focus is on the inside of the element to the transformation of the students, such as: List The inside of the element is & lt; 123 & gt; <223 & gt; <423 & gt; , I want to put the three set out on the first position in a new collection, the second and the third position in the same way,

CodePudding user response:

refer to 6th floor pursuit_by_happiness response:
Quote: refer to the fifth floor ws_tan reply:

Quote: refer to 4th floor ws_tan response:

Quote: refer to the second floor pursuit_by_happiness response:

Quote: refer to 1st floor ws_tan response:

His every piece of data is not List The type?
want to get is the result of the List Type

[images]

The focus is on the inside of the element to the transformation of the students, such as: List The inside of the element is & lt; 123 & gt; <223 & gt; <423 & gt; , I want to put the three set out on the first position in a new collection, the second and the third position in the same way,

Link: https://pan.baidu.com/s/1Ppkkp75YiM8R1_HjIgS1UA password: d599

CodePudding user response:

To send you a link
Link: https://pan.baidu.com/s/1LdVOP39yB8C2CGOwnOLYIA password: hcy2

CodePudding user response:

one crazy,,, what do this mean?

CodePudding user response:

references 9 f weixin_40852944 response:
and crazy one,,, what do this mean?

Ha ha filter results ah

CodePudding user response:

List. The addAll ()

CodePudding user response:

references to the tenth floor pursuit_by_happiness response:
Quote: references 9 f weixin_40852944 response:

one crazy,,, what do this mean?

Ha ha filter results ah

If the filter results, you see this line not line,,, 456 the filtered out
 
Public static void main (String [] args) {
List Lists=new ArrayList<> (a);
List Var0=new ArrayList<> (a);
List Var1=new ArrayList<> (a);
List Var2=new ArrayList<> (a);
Var0. Add (" 123 ");
Var1. Add (" 456 ");
Var2. Add (" 789 ");
Lists. The add (var0);
Lists. The add (var1);
Lists. The add (var2);
List Result=lists. Stream (). The filter (V - & gt; {
Return!" 456 "equalsIgnoreCase (V.g et (0));
}).collect(Collectors.toList());
System.out.println(result);
}

CodePudding user response:

The
refer to 12 floor weixin_40852944 reply:
Quote: reference to the tenth floor pursuit_by_happiness response:

Quote: references 9 floor weixin_40852944 response:

one crazy,,, what do this mean?

Ha ha filter results ah
nullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnull
  • Related