hi,
I i'm writing some code code for a school assignment, but I get stuck at a cannot find symbol error:
javac *.java Ecosysteem.java:34: cannot find symbol symbol : variable isKonijn location: interface IDier Wereld[randomRij][randomKolom].isKonijn = true; ^ Ecosysteem.java:53: cannot find symbol symbol : variable isVos location: interface IDier Wereld[randomRij][randomKolom].isVos = t rue; ^ Ecosysteem.java:86: cannot find symbol symbol : variable isKonijn location: interface IDier if (Wereld[rij][kolom].isKonijn) { ^ Ecosysteem.java:88: cannot find symbol symbol : variable isVos location: interface IDier } else if (Wereld[rij][kolom].isVos) { ^ 4 errors
The assignment is about writing an ecosystem with konijnen (rabbits) and vossen (foxes). The files I've written so far:
Vos.java:
[Java] Vos.java - Pastebin.com
Konijn.java:
[Java] Konijn.java - Pastebin.com
Dier.java:
[Java] // abstracte klasse Dier welke de interface IDier.java implementeert // // // - Pastebin.com
IDier.java:
[Java] IDier.java - Pastebin.com
Ecosysteem.java
[Java] Ecosysteem.java - Pastebin.com
IEcosysteem.java
[Java] IEcosysteem.java - Pastebin.com
Can anybody explain to me why I get this error and how I can solve it?
Thanks in advance.