Android Java more than 1 return statement -


this question has answer here:

i got inside method

    view android = inflater.inflate(r.layout.asd_frag, container, false);     ((textview) android.findviewbyid(r.id.textviewasd01)).settext("asd");     return android;     view android02 = inflater.inflate(r.layout.asd02_frag, container, false);     ((textview) android.findviewbyid(r.id.textviewasd02)).settext("asd02");     return android02; 

so problem cannot return 2 return statements inside method, know trick make happen.

create custom object contain 2 values or use pair.create(a, b)


Comments

Popular posts from this blog

Upgrade php version of xampp not success -

amazon web services - S3 and apache mod_proxy with basic authentication -

powershell - This solution contains one or more assemblies targeted for the global assembly cache -