编译出现unchecked call to add(E)的警告问题怎么解决?高手快进来,非常感谢!
我编译时出现:
Note:Sam.java uses unchecked or unsafe operations.
Note:Recompile with -Xlint:unchecked for details.
我Recompile了以后,出现的警告是:
warning:[unchecked]unchecked call to add(E) as a member of the raw
type java.util.ArrayList
al.add(Double.valueOf(in));
其中:
static ArrayList al=new ArrayList();
double in;
请教各位高手了,非常感谢!