I am using .toString to return a string representation of an object, i.e.
jcb.engineMove(move.toString());
will produce e2e4.
What
I would probably not use toString() in this case because it appears that you are simply repeating the logic that is in the Move class. In order to add any other details, I have one question: to what class are you adding this toString() method?
You call this method just like any other method. First you need an instance of an object to call it with:
someObj.toString();
To give any more details, I need an answer to the previous question.