ArrayList in Java

I’m trying to create an ArrayList for a view of my app so that i can reuse elements and reiterate through the different features of the app. My code is as follows:

static class View{
private static IOSElement element;
private String description;
public View(IOSElement element, String description){
this.element = element;
this.description = description;
}

ArrayList myList = new ArrayList();

IOSElement assignmentElement = driver.findElementByAccessibilityId(“Compose”);
View assignmentView = new View(assignmentElement, “hello”);
myList.add(assignmentView);
assignmentElement.click();
driver.navigate.back();
myList.get(0).click();

the myList.get(0).click() fails to be found

i’m asking how to implement and access an array of IOSElements, specially one inside a java class