[SOLVED] Undeclared Return Type for Method?
I'm having huge problems with this java malarky! I wonder if you can help.
I'm very very basic with Java.
I'm trying to write a simple method (code below):
* Clears the calculator.
public void clear()
As far as I understand it, this should work - I am access setPosition method from another class. When I execute clear(). I get the following error message:
Semantic error: Error loading command: : Error loading script: Sourced file: /bsh/commands/clear.bsh : (Strict Java Mode) Undeclared return type for method: clear
I just want to set the positions of the frogs to 0. Also if I copy this line:
this.operand1Frog.setPosition(0); and place in the constructor it works fine and moves the Frog to position (0) with no problems.
If you need futher information please let me know.
All the best - FMJ.