Im a little confused and lost on what im doing wrong. Could anyone help me?
This is the entire code, i know im missing something but unsure how or where to add. The error says "Invalid Method declaration; return type required" by the PUBLIC WOMBAT
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* Write a description of class wombat here.
*
* @author (your name)
* @version (a version number or a date)
*/
public class wombat extends Actor
{
private static final int NORTH = 0;
private static final int EAST = 1;
private static final int SOUTH = 2;
private static final int WEST = 3;
private int direction;
public Wombat()
{
setDirection(East);
}
/**
* Act - do whatever the wombat wants to do. This method is called whenever
* the 'Act' or 'Run' button gets pressed in the environment.
*/
public void act()
{
}
}
