From the comments:
error is '{' expected
code is public class Testclass extends ArrayList<Object>, implements Iterable<Object> { }
Remove this comma ,. It does not belong. This is just a syntax error.
Read the error message in the future . If you cannot interpret it, not even after a little Googling, just ask it here, fill in the entire error message and the code that caused it. Thus, you will get more suitable answers earlier than random guessing for a reason;)
source
share