我编译时出现:
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;请教各位高手了,非常感谢!
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;请教各位高手了,非常感谢!
看看jdk1.5的泛型就明白了