Dear all
I am now reading the book of HF
Servlet &
JSP 2nd and found the following code:
And the BeerExpert class:
Well, the question is that, BeerSelect.java cannot be compiled with the following well-know warning:
Actually I know that, when I use the @SuppressWarnings("unchecked") statement above the "List<
String> result = be.getBrands(c);", the code can be compiled nicely. However, I don't want to avoid that everytime when I meet this error. But the question is : how can I change to have it compiled?
Can anyone please help me to solve this problem?
Thank you very much in advance for all your help.