Hello everyone!
I was hoping someone could assist me with this error that I am receiving every time I try to compile. The assignment stated to write the source code for Velocity into the actor class Velocity. It made it clear that it must be entered exactly the way it is written. I did that however; I keep getting an error no matter which way I try to enter the code. Could someone help me with this matter. Here's a copy of the source code that's having the issue. Thanks a bunch:-)!
/**
* Write a description of class Velocity here.
*
* @author Jacinta Wilson
* @version March 30, 2013
*/
public class Velocity extends Actor
{
/**
* Act - do whatever the Velocity wants to do. This method is called whenever
* the 'Act' or 'Run' button gets pressed in the environment.
*/
public void act()
{
}
public Velocity()
{
// instance variables
private int xSpeed = 0; this is where the error "illegal start of expression" is located
private int ySpeed = 0;

