Hello, I have been reading the head first
java book for some time and just recently i stumbled upon a problem with the ready baked code.
It concerns chapter 15 with the chat application. I have created an ArrayList clientOutputStreams; as the book suggested but then i get this error:
VerySimpleChatServer.java:43: warning: [unchecked] unchecked call to add(E) as a member of the raw type java.util.ArrayList
clientOutputStreams.add(writer);
I think the solution to this problem is properly casting the arraylist to a type. I am not very sure if that is the problem, and even if it is, I'm not very sure on how to fix it.
Anyway here's the code I have:
If somebody could help out with this one I would be really thankful. Thank you in advance