Search:

Type: Posts; User: taz_1891

Search: Search took 0.07 seconds.

  1. Re: toString not printing everything in the Array which is in a seperate class

    Ok got it !!


    if (num > players.length)
    {
    incSize(num);



    Was also killing me. It obviously wasn't doing its job correctly.... well it was, my attempt at coding was...
  2. Re: toString not printing everything in the Array which is in a seperate class

    Ok, so num in the for loop should actually be players.length (the size of the array). But i feel it will still start from the beginning and write over everything every time i 'add' a player.

    So...
  3. Re: toString not printing everything in the Array which is in a seperate class

    Sorry.

    The problem is when i add a player (addCenter or addGuard), it suppose to store the information the user inputs into an array. Then at the menu, when they select option 3 (Show players...
  4. Re: toString not printing everything in the Array which is in a seperate class

    Ah ok (i think i understand).

    So will that is definitely one issue (thanks) but it wouldn't relate to the array problem would it. The fact that everything gets written over when a new entry is...
  5. Re: toString not printing everything in the Array which is in a seperate class

    Even if its getting those parameters from the other two classes?
    I have two other classes (positionCenter and positionGuard) which stores that info.

    P.S Sorry about the original effort. As soon...
  6. toString not printing everything in the Array which is in a seperate class

    Hi all,
    Im having huge problems trying to get a toString method in one class to print everything in the array in another class. It will be ok if i just add a guard or a center, but as soon as i add...
Results 1 to 6 of 6