unchecked error when compiling my previous project with the new jdk 1.6
After modifing my code which was written in j2sdk 1.4.2_09, the compiler throws a:
warning:[unchecked] unchecked call to the add(E) as a member of the raw type java.util.Arraylist.
Does any one know how to check the string being added, all necessary checks done before trying to load the ArrayList
[316 byte] By [
Irvina] at [2007-11-27 0:15:55]

# 1
Read about generics (which was introduced in java 1.5).
All code that looks like this:
ArrayList x = new ArrayList();
x.add("ABC");
will give this warning message.
Instead, you're supposed to write it like this now:
ArrayList<String> x = new ArrayList<String>();
x.add("ABC");
But the COST of going through your entire code, and add all these
tags may be too expensive. Instead, if your code works,
just ignore this warning message.