Search:

Type: Posts; User: Norm

Search: Search took 0.11 seconds.

  1. Re: how to sort array by object string member value?

    Did you print this: stock[b].getItemName()
    it returns a reference that is used to access the compare...To() method
  2. Re: how to sort array by object string member value?

    You need to find the variable with the null value.
    Add a println just in front of the line where the NPE occurs. Print the values of all the variables.
  3. Re: how to sort array by object string member value?

    Which variable in that statement has a null value?
    Print out the values of all the variables in that line to see which variable has a null value. Then try to find out why it does not have a valid...
  4. Re: how to sort array by object string member value?

    Write a sort method that Compares the itemName members when making the decision on how to order the elements in the array.
Results 1 to 4 of 4