i just need a method that will draw me a flower but it says illegal start of expression error on line 36. what does that mean and how do i fix it?
import java.applet.Applet;
import java.awt.*;
public class ProjectTwo extends Applet {
public void paint(Graphics g) {
///background
g.setColor(Color.blue);
g.fillRect(0,0,1366,384);
g.drawRect(0,0,1366,384);
g.setColor(Color.green);
g.fillRect(0,384,1366,384);
///title
Font font4 = new Font("Helvetica", Font.BOLD, 25);
g.setColor(Color.white);
g.setFont(font4);
g.drawString("Flower Field", 600,25);
///flower
drawFlowers(f, 900,384);
drawFlowers(f, 800,184);
///tree
g.setColor(Color.orange);
int t = 6;
while(t<=14)
{
int x = 1000;
int y = t*26;
int w = 25;
int h = 25;
g.fillRect(x,y,w,h);
t=t+1;
}
public void drawFlowers(Graphics f, int x, int y)
{
f.setColor(Color.magenta);
f.fillOval(x-20,y,40,384);
f.setColor(Color.green);
f.drawLine( x-100, y-200 , 200,200);
}
}