Search found 3 matches
- Tue Sep 30, 2008 2:56 pm
- Forum: BitBath
- Topic: Struggling with learning concepts.
- Replies: 4
- Views: 22050
The easiest way to do this is probably... private MasterAndServant myClass; public MasterAndServant() { myClass = null; } public Object think(etc) { if(myClass != null) { return myClass.think(etc); } else { if(isCommander()) { myClass = new Commander(); } else { myClass = new Servant(); } } } // And...
- Mon Jun 09, 2008 8:35 pm
- Forum: BitBath
- Topic: Simulator Crash
- Replies: 1
- Views: 16837
Simulator Crash
This error seems to crash the simulator. Could well be related to my use of HashMap. Although switching one Vector to a HashMap reduced the number of individual bots that crashed. Exception in thread "Thread-5" java.lang.Error: invokeinterface not implemented at ojvm.operations.BytecodeInt...
- Thu May 29, 2008 7:31 pm
- Forum: BitBath
- Topic: ArrayList LinkedList Vector missing?
- Replies: 5
- Views: 24042