I have a class that is extending Java\'s ArrayList. I\'m currently using Java build 1.6.0_22-b04. Looks like this:
public class TokenSequence extends ArrayList&
Try adding the @Override annotation to your add() method and make sure to have the same signature (boolean return type)
public class TokenSequence extends ArrayList { @Override public boolean add(Object e) { return super.add(e); } }
Or if you want it to be void, take another method param.
cheers