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);

}

}

[1635 byte] By [MilkMana] at [2007-10-2 6:36:32]
# 1
You cannot have spaces in variable or method names.
TimTheEnchantora at 2007-7-16 13:39:09 > top of Java-index,Java Essentials,New To Java...
# 2
Method names (any identifiers) can't have spaces in them - ie "draw a snow"Method declarations must have return types (eg "void")Your "for()" loop on 25 has no bodyLine 32 is completely up the spout :o)
itchyscratchya at 2007-7-16 13:39:09 > top of Java-index,Java Essentials,New To Java...
# 3

Method names (any identifiers) can't have spaces in them - ie "draw a snow"

Method declarations must have return types (eg "void")

Your "for()" loop on 25 has no body

Line 32 is completely up the spout :o)

ok thanks...where do i put the void in?, how to i put a body on for on line 25 and how do i fix the spout lol?

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 drawsnow()

{

drawsnow (= randomGenerator())

24>for(int i = 0; i <= 20, i++ )

}

public drawasnow()

{

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);

}

}

MilkMana at 2007-7-16 13:39:09 > top of Java-index,Java Essentials,New To Java...
# 4
Uhm... do you know what you are trying to do?Maybe you should take some time to go through a [url=Learning the Java Language]Java tutorial[/url].
TimTheEnchantora at 2007-7-16 13:39:09 > top of Java-index,Java Essentials,New To Java...
# 5
See what happens when milkmen try to become software developers?
warnerjaa at 2007-7-16 13:39:09 > top of Java-index,Java Essentials,New To Java...
# 6
> See what happens when milkmen try to become software> developers?Hey, if a knuckle-dragging LEO can do it... :o)
yawmarka at 2007-7-16 13:39:09 > top of Java-index,Java Essentials,New To Java...
# 7
> > Maybe you should take some time to go through a> [url=Learning the Java Language]Java tutorial[/url].Something wrong with that link. Try this one instead: http://java.sun.com/docs/books/tutorial/index.html
hungyee98a at 2007-7-16 13:39:09 > top of Java-index,Java Essentials,New To Java...