override tostring()
<p>im implementing a class based on a given GUI and i'm trying to override tostring() in order to display the information on the GUI but i can't get it to work properly.</p>

<p>GUI code</p>

<pre><code>private void updateDisplay() {
    try {
        if (game.isAccepted()) {
            String str = "Selected Applicant:\n\n"
                    + currentApplicant.toString() + "\n\nwas ";
            if (game.isBestApplicant()) {
                str += "the BEST.  You Win!";
            } else {
                str += "not the best available.  You Lose.\n\nBest applicant was: \n\n"
                        + game.getBestApplicant();
            }
            display.setText(str);
            showNewGameControls();
        } else {
            display.setText("Current applicant is:\n\n"
                    + currentApplicant.toString()
                    + "\n\nDo you wish to accept or reject?");
            showCurrentGameControls();
        }
    } catch (HiringException e) {
        display.setText(e.getMessage());
    } catch (Exception e) {
        display.setText("Unandled Exception: " + e.toString());
        throw new RuntimeException(e);
    }
}
</code></pre>

<p>For the class i am implementing, I wrote the following method</p>

<pre><code>public String tostring(){
  return currentApplicant;
}
</code></pre>
