class Solution { public int[] solution(int[] num_list) { int[] answer = new int[2]; int twoNum = 0; int notTwoNum=0; for (int i = 0 ; i < num_list.length ; i++){ if(num_list[i]%2==0){ ++twoNum; }else{ ++notTwoNum; } } answer[0] = twoNum; answer[1] = notTwoNum; return answer; } }