yanghb
2024-12-24 fe6e43d5e1144156d0ca4e9d6080c9821c25d97c
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;
    }
}