In that case, you still have the funxtions hard coded so....
switch(x){
case 1: this.chickens1(); break;
case 2: this.chickens2(); break;
case 3: this.chickens3(); break;
case 4:...
Type: Posts; User: Freaky Chris
In that case, you still have the funxtions hard coded so....
switch(x){
case 1: this.chickens1(); break;
case 2: this.chickens2(); break;
case 3: this.chickens3(); break;
case 4:...
Assuming that both face1() or whatever you decide to call it, and face2() etc all have the same medthod headers then this problem can be easily solved using Function objects, since Java doesn't...