LeetCode Solutions/Problems/2180. Count Integers With Even Digit Sum.java
<gh_stars>0class Solution {
    public int countEven(int num) {
        return (String.valueOf(num).chars().map(Character::getNumericValue).sum() % 2 == 0) ? num / 2: (num - 1) / 2;
    }
}