This is a part of my code for chat server for which I ain't getting any compilation errors for syntax but I am getting an error
Note: ChatServer.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
As I am a newbie I don't know about the -Xlint errors.So I compiled with command
javac -Xlint:unchecked ChatServer.java
and got the following error
ChatServer.java:24: warning: [unchecked] unchecked call to add(E) as a member of
the raw type ArrayList
where E is a type-variable:
E extends Object declared in class ArrayList
So please help me out to understand this error and the way to corect it.
Thanks in advance.