
https://school.programmers.co.kr/learn/courses/30/lessons/120912
정답은 간단하고 내 머릿속에 있다. 괜히 어렵게 생각하지 않도록 하자.
를 항상 익히면 좋겠다.
class Solution {
public int solution(int[] array) {
int answer = 0;
for(int n : array) {
String s = String.valueOf(n);
for(char c : s.toCharArray()) {
if ((c -'0') == 7) {
answer++;
}
}
}
return answer;
}
}