java - How to iterate over String array? -
when settext in textview shows first 3 lines of array,i need way result = result + xx.split("\n"); in string array not possible can teach me other way that?
string xx=""; string result[] = {}; for(int i=0;i<row;i++) { for(int c=0;c<col;c++) { cell z=s.getcell(c,i); //need alternative because cannot in string array result = result+ xx.split("\n"); } } textview.settext(resultado[0]+"--"+resultado[1]+"--"+resultado[2]);
you need more specific on trying achieve basic iteration on array.
string numbers = new string[] {"1", "2", "3", "4", "5"}; string mystring = ""; (string anumber : numbers) { mystring += anumber; } textview.settext(mystring);
Comments
Post a Comment