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

python - Healpy: From Data to Healpix map -

c - Bitwise operation with (signed) enum value -

xslt - Unnest parent nodes by child node -