Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

Making a Set<T> class..wont work please help

hi, im doing an assignment and the code given is a basic Set<T> class..yet whenever i compile the given code i get two complier errors. Here is the code:

public class Set<T>{

}

Now there are ofcourse many methods within this and such but even after taking all of the out and having the code just be that i still get 2 errors.

One error is on the first line public class Set<T>{ where it says its expecting a "{" ..

the second is ofcourse on the last line where it says its expecting a "}"...this makes no sense at all to me..please help..its very frustrating.
[627 byte] By [p1kn1c] at [2007-11-11 7:25:41]
# 1 Re: Making a Set<T> class..wont work please help
Check your compiler and make sure that you are compiling under java 5.0, other versions of java won't understand the generics.
evlich at 2007-11-11 22:38:21 >