Terminal mentions a problem with the method "create tree"
Please note I am a beginner in coding
What's wrong with my code?
public void createTree(int bottomLeftX, int bottomLeftY) { int change = 80; int change1 = 28; int change2 = 2; int change3 = 5; int change4 = 35; int[] xValues = {bottomLeftX, bottomLeftX, bottomLeftX + change, bottomLeftX + change, bottomLeftX + change - change1, bottomLeftX + change - change1, bottomLeftX + change - change2}; int[] yValues = {bottomLeftY, bottomLeftY - change + change3, bottomLeftY - change + change3, bottomLeftY - change + change4, bottomLeftY - change + change4, bottomLeftY + change - change4, bottomLeftY + change - change4, bottomLeftY + change + change3}; int points = 8; myImage.setColor(new Color(34,177,76)); myImage.fillPolygon(xValues,yValues,points); myImage.setColor(Color.BLACK); myImage.drawPolygon(xValues,yValues,points); }