This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
brands.add("Jail Pale Ale"); brands.add("Gout Stout"); }
Before I modified it as on page 84 I successfully compiled BeerSelect.java I was able to display the Beer Selection Page then after clicking on a color and Submit Query I received a page that read Beer Selection Advice and nothing else.
I deleted both the BeerSelect and Beer Expert class files and started over recompiling them when I received the errors above.
Since successfully display the messages on the pages in the previous paragraph I have not changed any environment variables.
Generics is about type safety for your Collection, and some more. But with Collections you basically tell it what type of objects you can put into the Collection. When you have code that does not say what type you can put in the Collection, it will allow you to do this, which is the 1.4 and before way, but it will give you a warning. The reason why it won't cause an error is to allow for backwards compatibility.