If you are going to declare a type parameter in the constructor, you also have to do it in the variable declaration. For example:
ArrayList<Object> list = new ArrayList<>();
Type: Posts; User: snowguy13
If you are going to declare a type parameter in the constructor, you also have to do it in the variable declaration. For example:
ArrayList<Object> list = new ArrayList<>();