First and foremost, thanks in advance.
My program is suppose to have balls bouncing off the walls, changing colors each time they do so. I'm not sure what the issue is, however I am getting the following errors:
Ball.java:19: not a statement
addMouseListener{
^
Ball.java:19: ';' expected
addMouseListener{
^
Ball.java:76: invalid method declaration; return type required
public BallThread(int xCoord, int yCoord)
^
I can't figure out with the problem is, so any and all help is greatly appreciated.
Again, thanks in advance.
Code
My program is suppose to have balls bouncing off the walls, changing colors each time they do so. I'm not sure what the issue is, however I am getting the following errors:
Ball.java:19: not a statement
addMouseListener{
^
Ball.java:19: ';' expected
addMouseListener{
^
Ball.java:76: invalid method declaration; return type required
public BallThread(int xCoord, int yCoord)
^
I can't figure out with the problem is, so any and all help is greatly appreciated.
Again, thanks in advance.
Code