Search:

Type: Posts; User: 93tomh

Search: Search took 0.11 seconds.

  1. Replies
    16
    Views
    1,586

    Re: Having trouble returning an array

    Can you show me the syntax for a comparator class? Ive looked online for it and im not sure how to write this. Im not asking for you to write any code, but can you put it in sort of laymans terms...
  2. Replies
    16
    Views
    1,586

    Re: Having trouble returning an array

    All of the data are strings that are set in a different class.
  3. Replies
    16
    Views
    1,586

    Re: Having trouble returning an array

    I just dont know how to sort arrays by a certain string in them.

    So there are 2 different contact types (called contactType and is a String) These are automatically assigned when you call either...
  4. Replies
    16
    Views
    1,586

    Re: Having trouble returning an array

    I have 2 different contact types- Personal and Business. I need to return both business and personal contacts seperately. I dont know why i said pull back, i meant return, my mind must have gone...
  5. Replies
    16
    Views
    1,586

    Re: Having trouble returning an array

    Thank you very much! And can i ask you for the syntax to pull back data in the array that has either the "personal" or "business" contact type?
    Thanks again
  6. Replies
    16
    Views
    1,586

    Re: Having trouble returning an array

    1356

    and im not certain about the variable, i didnt really know how to return an array at all, but i have another project that compiles fine with it and i tried to convert it to use it in this...
  7. Replies
    16
    Views
    1,586

    Re: Having trouble returning an array

    ]CODE]public String toString()
    {
    String output = "All Contacts:\n";
    for (ContactList contact : contactList)
    {
    output = output + account + "\n\n" ;
    ...
  8. Replies
    16
    Views
    1,586

    Having trouble returning an array

    Below is a my code, and i have got as far as creating the arrays, but im not too sure how to return them. I have made an effort but got the compiling error: incomplatible types. I have hilighted this...
Results 1 to 8 of 8