I'm a rusty programmer, and working on an application that's going to have several object classes. My only error is a type mismatch, and I'm not sure which the debugger is reading as an object, and which one is actually in the coord class I made.
public class Lily {
int state;
public Lily(coord[] pond) {
int state = 0;
coord place = new coord (mouseX, mouseY);
pond = append(pond, place); \\this is the line that's getting a type error
}
public void draw(){
ellipse(mouseX, mouseY, 40, 40);
fill(#08BC09);
}
}
And the coord class
public class coord {
float[] pair = new float[2];
public coord(float X, float Y){
pair[0] = X;
pair[1] = Y;
}
}
Edit: The error message reads "Type Mismatch, "Java.lang.Object" does not match with "main.coord[]" "
Any help? Thanks in advance.