hello.
I have been getting this error for a while now. I'm using this file to import into another file to create a game. I'm using Dr Java and the JDK 6.0_27 compiler
here is my line of code:
//Block.java
public class Block extends GraphicsProgram
{
RandomGenerator rg = new RandomGenerator();
int width, low, high, ground;
block = new GRect(40, rg);
public Block (int w, int l, int h, int x, int g)
{
width = w;
low = l;
high = h;
ground = g;
}
}
this is my error:
1 error found:
File: D:\blockjumpergame\Block.java [line: 5]
Error: D:\blockjumpergame\Block.java:5: <identifier> expected
thank you for any help on this matter.
Bookmarks