Help with Arraylist.....
Hi
i want to create an arraylist for my innerclass object called Option....
public class OptionSet implements Serializable
{
ArrayList<Option> options = new ArrayList<Option>();
class Option implements Serializable
{
....
}
}
But iam getting the following error:
1.The type ArrayList is not generic; it cannot be parameterized with arguments <OptionSet.Option>
2.Syntax error,Parameterized types are only available if the source level is 5.0
Where am i going wrong?
[569 byte] By [
GitaSumana] at [2007-11-27 5:19:16]

Are you using IDE? If yes, check your Java compiler settings. Your IDE must be set to use 1.4 version for compiling.Otherwise, post the exact compiler error that you're having.
Note however that each project can override the Eclipse environment compiler settings. To look at the project settings, make sure that you have the Package Explorer window open. then:
Right click on your project, then
properties (button choice) then
Java compiler. Here you can view, enable, or disable project specific settings.