Search:

Type: Posts; User: Norm

Search: Search took 0.14 seconds.

  1. Replies
    16
    Views
    1,576

    Re: Having trouble returning an array

    A Comparator class implements the Comparator interface and defines the methods in the interface.
    There must be samples on the forum and net if you do a search.

    EDIT: Just found this in the...
  2. Replies
    16
    Views
    1,576

    Re: Having trouble returning an array

    To sort class objects that are in an array, you could write a Comparator class for them and use the Arrays class's sort() method.
  3. Replies
    16
    Views
    1,576

    Re: Having trouble returning an array

    What kind of data is in the array? Strings or a class object that contains a String?
    The Arrays class has sort methods you can use, some with Comparators that you can write that will determine the...
  4. Replies
    16
    Views
    1,576

    Re: Having trouble returning an array

    Can you explain what problems you are having?
    By "types" do you mean class objects or are you talking about String data that has different content and is used in a different way.
    How do you...
  5. Replies
    16
    Views
    1,576

    Re: Having trouble returning an array

    Can you explain what you mean by "pull back"?
    Can you post an example array and explain what you want to do with the data in the array?
  6. Replies
    16
    Views
    1,576

    Re: Having trouble returning an array

    You return an array by using the name of the array in a return statement:
    return theNameOfTheArray; // return array


    What does the variable: contactList contain?
  7. Replies
    16
    Views
    1,576

    Re: Having trouble returning an array

    Please post the full text of the error message. It has the source code line number for the error.
    Also post the source code line causing the error or flag it in the posted source.

    What is the...
  8. Replies
    16
    Views
    1,576

    Re: Having trouble returning an array

    Please post the full text of the error message.

    Where is the code that is trying to return an array?
Results 1 to 8 of 8