Search:

Type: Posts; User: jamesh

Search: Search took 0.10 seconds.

  1. Replies
    5
    Views
    1,196

    [SOLVED] Re: Information on toString()

    Hi Andbin,

    Thanks for that thought looked wrong! Got it working now.

    Thanks again.

    --- Update ---

    Hi Grey,
  2. Replies
    5
    Views
    1,196

    [SOLVED] Re: Information on toString()

    No I have not until now. Which I was able to do however once additing it into my toString() method as below



    public String toString()
    {
    return "This player name is" + playerName;
    ...
  3. Replies
    5
    Views
    1,196

    [SOLVED] Information on toString()

    Hi,

    I need to use the toString() to display some of the attributes about a class. However I have int values also that need to be displayed.

    Is there anyway to include these into the following?...
Results 1 to 3 of 3