Home > Back-end >  The 2020-11-11: write code: how to get order specifies the number of elements in the array?
The 2020-11-11: write code: how to get order specifies the number of elements in the array?

Time:11-12

The 2020-11-11: write code: how to get order specifies the number of elements in the array? # # f greatly

CodePudding user response:

The filter ()
The skip (startLine)
Limit (pageSize)
Collect (Collectors. ToList ());

CodePudding user response:

 Integer [] array=,2,5,5,9 {1}; 
Int count=0;
For (int I=array. The length - 1; I>=0; I -) {
If (array [I]==5) {
count++;
}
}
  • Related