vendredi 29 mai 2015

Java determine the return type at Runtime

I read various links on SO but I am unable to grasp the answers related to it.

I have a problem as such

public dynamicreturn/dynamicothertype test(){
    if(A)
       return dynamictype;
    else
       return dynamicothertype;
}

how to achieve it?Small guidance or any links would be very helpful.





Aucun commentaire:

Enregistrer un commentaire