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...
Type: Posts; User: 93tomh
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...
All of the data are strings that are set in a different class.
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...
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...
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
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...
]CODE]public String toString()
{
String output = "All Contacts:\n";
for (ContactList contact : contactList)
{
output = output + account + "\n\n" ;
...
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...