I am trying to parameterisze the arraylist as follows. I am getting compilation error.
1. About my environment I had installed
java 1.5 and JRE . I had checked the java version it shows 1.5
2. In my Eclipse build path, I had added all necessary jar file.
But still the following throws Compilation error .
private ArrayList<Item> myStore = new ArrayList<Item>();
Item is a class which contains getter and setters. Further it is in the same default package (located in the same work space).
1. I am importin java.util.* package.
I am getting the following error messages.
Multiple markers at this line
Syntax error on token "<" , ( expected
Syntax error on token "(" invalid expression
Syntax error on tokens delete these tokens
Can some one help me immediately ?
Thanks
Murali