Having a spot of bother with expected semi colons
Hello there, i am currently attempting to get snow to display on a java applet using a random number generator. When i compile the program i am getting the same error message for line 24 and 28.
" ';' expected' " I can't figure out where the semi-colons are meant to go..i was wondering would any1 know what the matter is please...although if i do i would probably get more errors...my code is displayed below...any1 know what the matter is? thanks..i have labelled line 24 ad 28 for your benefit.
import java.awt.geom.Ellipse2D;
public class snow
{
private int xLocation;
private int yLocation;
private int width;
private int height;
int random = randomNumberGenerator();
public snow(int x, int y, int w, int h)
{
xLocation = x;
yLocation = y;
width = w;
height = h;
drawsnow();
}
public class drawsnow
{
public drawsnow()
{
24>draw a snow (= randomGenerator())
for(int i = 0; i <= 20, i++ )
}
28>public draw a snow()
{
Ellipse2D.Double circle =
new Ellipse2D.Double( x, y, diameter, diameter);
g.2draw(circle;)
}
}
public static void main(String[]args)
{
JFrame frame = new JFrame();
final int FRAME_WIDTH = 300;
final int FRAME_HEIGHT = 400;
frame.setSize(FRAME_WIDTH, FRAME_HEIGHT);
frame.setTitle("Snow Amigo");
frame.set.DefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
snow component = new snow();
frame.add(component);
frame.setVisible(true);
}
}

