Originally posted by Brandon W:
Hi,
I can return a DataInfo[] from criteriaFind(). However, how to catch the returned result is a question to me as I don't know what's the size of the return array. Actually, I may pass an array into the criteriaFind() but if I do so, I will actually change the parameters of the criteriaFind and that's doesn't match what shown in the downloaded assignment:
public DataInfo[] criteriaFind(String criteria)
can I actually change the declaration by adding more parameters?
Brandon
I don't see the your problem. you can get the size of an array with its length attribut:
I would strongly discourage you from changing the API...
cheers
Hansjoerg