Alright so I'm trying to get this class work:
public boolean hasPoint(Point p){
for (int i=0; i<this.points.size(); i++){
// Right here
if(points[i].equals(p)){
return true;
}
}
return false;
}
However on line 3 I seem to be calling points as an array, but it's actually an arraylist. What am I doing wrong?