1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
| package com.zzg.common.utils;
|
| import java.util.List;
|
| public class CountUtils {
| public static boolean Count(List<Integer> list, Integer lay) {
| int count = 0;
| for (Integer o : list) {
| if (o == lay) {
| count++;
| }
| }
| if (count == list.size()) {
| return true;
| }
| return false;
| }
| }
|
|