import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* Write a description of class COI here.
*
* @author (your name)
* @version (a version number or a date)
*/
public class COI extends animal
{
/**
* Act - do whatever the COI wants to do. This method is called whenever
* the 'Act' or 'Run' button gets pressed in the environment.
*/
public void act()
{
{ public void moveCoins(int dx, int dy) {
List<Coin> coins = getObjects(Coin.class);
for (Coin coin : coins) {
coin.setLocation(coin.getX() + dx, coin.getY() + dy);
}
}
IT SAYS ILLEGAL START OF EXPRESSION
