Using HashSet<E> in Java 5.0
I desperately need help reading this API file
http://java.sun.com/j2se/1.5.0/docs/api/java/util/HashSet.html
I know how to use HashSet in Java1.4 but now its different and I get an error
Here's my code:
import java.io.*;
import java.util.HashSet.*;
importstatic java.lang.System.*;
publicclass HashsetExample{
publicstaticvoid main(String args[]){
HashSet bar =new HashSet();//define bar as a HashSet
bar.add("added");
}//end main
}//end class
Error I get at compile:
"HashsetExample.java:14: warning: [unchecked] unchecked call to add(E) as a member of the raw type java.util.HashSet
bar.add("added");
^
1 warning
"
I know the "add(E)" has to do with HashSet defined in the API, but I cant make heads or tails of how to use it. How do you use HashSet in Java 1.5?

