๐ก๋ง์น์ง ๋ชปํ ์ผ์ ์์๋๋ก ๋ด์ ๋ฌธ์์ด๋ฐฐ์ด์ ๋ฆฌํดํ๋ผ
todo_list ์์ finished ๊ฐ false ์ธ ๊ฐ๋ค๋ง ๋ฌธ์์ด ๋ฐฐ์ด์ ๋ฃ์ด์ฃผ๋ฉด ๋๋ค.
import java.util.ArrayList;
class Solution {
public ArrayList <String> solution(String[] todo_list, boolean[] finished) {
ArrayList <String> answer = new ArrayList<>();
for (int i = 0 ; i < todo_list.length; i++){
if (finished[i] == false){
answer.add(todo_list[i]);
}
}
return answer;
}
}