Here's the code of the method:
public void setupList(ArrayList<AnyAbstractObject> list)
{
//Here´s the Code stuff. This Method is in the Class: AlphabeticList
}
And I tried to call this method with:
setUpList(new ArrayList<THEObject>);
The Code of THEObject:
public class THEObject extends AnyAbstractObject{//Lalala}
When I'm trying to run this program the console prints this:
Exception in thread "main" java.lang.Error: Unresolved compilation problem:
The method setupList(AnyAbstractObject[]) in the type AlphabeticList is not applicable for the arguments (AlphabeticList)at Test.Tester.main(Tester.java:22)
What is the issue here?