Originally posted by Jothi Shankar Kumar Sankararaj:
I really did not get you...
in my opinion you habe a method findxy() with return value of typ collection, right?
So you have to return a value of this typ, f.i.
public collection findxy(){
//what ever you do, somewhere you have to get a value c
// c=new Collection(); c.add(xy);...
//c=what you have found;
return c;
}
so if nothing found c=empty, or you gave it an other value in your method...