내풀이
import java.util.stream.*; class Solution { public int solution(int n) { return IntStream.rangeClosed(1,n).filter(i->i%2 == 0).sum(); } }