I'm writing a java class and I keep hitting an error.
Paragraph.java:21: error: cannot find symbol
ArrayList array;
^
symbol: class ArrayList
location: class ParagraphParagraph.java:32: error: cannot find symbol
array = new ArrayList();
...................^
symbol: class ArrayList
location: class Paragraph
I imported the java class arrays at the very top of my program and it looks like this.
import java.util.Arrays;
The exact part of code I'm having errors with is...
private ArrayList<String> array;
public Paragraph()
{
array = new ArrayList<String>();
}
This is part of an assignment were I have to use ArrayList.