Why will this not compile? I have restarted Greenfoot and double checked everything.
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * Write a description of class SoliWorld here. * * @author (your name) * @version (a version number or a date) */ public class SoliWorld extends World { Card card = new Card(); Deck deck = new Deck(); Option option = new Option(); CardPile crdple = new CardPile(); StartScreen start = new StartScreen(); Random rand = new Random(); TakenCards taken = new TakenCards(); boolean[][] tcnas = taken.takenCardNumAndSuit; int suit = 0; int randnum = 0; String suitS = ""; /** * Constructor for objects of class SoliWorld. * */ public SoliWorld() { // Create a new world with 600x400 cells with a cell size of 1x1 pixels. super(700, 500, 1); addObject(deck,45,60); addObject(start,350,250); addCards(); setPaintOrder(StartScreen.class,Card.class,Deck.class); } public void addCards() { for(int i = 1; i != 8; i++) { addRow(i); } } public void setVars() { switch(rand.rand(4)+1) { case 1:suitS = "clubs"; suit = 1; break; case 2:suitS = "spades"; suit = 2; break; case 3:suitS = "hearts"; suit = 3; break; case 4:suitS = "diamonds"; suit = 4; break; } randnum = rand.rand(13)+1; } public void addRow(int rownum) { setVars(); addObject(new Card(true,randnum,suitS),135+(80*rownum),165+(20*rownum)); for(int i = 1; i != (7-rownum); i++) { setVars(); addObject(new Card(false,randnum,suitS),135+((i+rownum)*80),165); } } public void started() { removeObject(start); } public Option getOption() { return option; } }