안녕하세요
아래와 같이 입력해서 컴파일하니
Recompile with -Xlint:uncheked for details이 뜹니다.
확인해보니 b.offer("셋"); 이부분인데요
이게 왜 이런건가요?
================================================
import java.util.*;
class Question1
{ public static void main(String[] args)
{ Stack<String> a = new Stack<String>();
Queue b = new LinkedList();
a.push("하나");
a.push("둘");
System.out.println(a.pop());
System.out.println(a.search(1));
System.out.println(a.peek());
b.offer("셋");
System.out.println(b.peek());
System.out.println(b.poll());
System.out.println(b.peek());
}
}