S
Stalin
Hi guys,
public Objectbinary(Object[], String keyName, String keyValue){
????????
int index = binarySearch(Object[],????);
return Object[index];
}
To make this method work I have to give it array and object that it will be
looking for. The thing is I don't know what kind of object in Object [] so I
have construct it during runtime by only have keyName (Ex. "LastName" ) and
keyValue (Ex "Robinson").
I've been deeging Reflection API last couple of days but can't figure this
one out.
Anybody have an idea how to do it?
Thanks
public Objectbinary(Object[], String keyName, String keyValue){
????????
int index = binarySearch(Object[],????);
return Object[index];
}
To make this method work I have to give it array and object that it will be
looking for. The thing is I don't know what kind of object in Object [] so I
have construct it during runtime by only have keyName (Ex. "LastName" ) and
keyValue (Ex "Robinson").
I've been deeging Reflection API last couple of days but can't figure this
one out.
Anybody have an idea how to do it?
Thanks