너비 우선 탐색은 자료 구조인 Queue를 사용한다자바에서 큐는 LinkedList를 활용하여 생성해야 합니다. 그렇기에 Queue와 LinkedList가 다 import되어 있어야 사용이 가능합니다. Queue queue = new LinkedList<>()와