Android method parametre as array

view full story

http://stackoverflow.com – public void setFont(String font_type, TextView[] fontArray) { Typeface face = Typeface.createFromAsset(getAssets(), "fonts/" + font_type); for (int i = 0; i < fontArray.length; i++){ fontArray.setTypeface(face); } } I want to add different textviews to different typeface. i could not find out how to implement foreach loop correctly. thanks in advanced... (HowTos)