output_ele = (TextView)findViewById(R.id.outputLabel); <pre lang="cs"> public final void stringprint(String[][] orig, int rowmax, int columnmax) { for (int i = 1; i <= rowmax; i++) { for (int j = 1; j <= columnmax; j++) { String entry = String.valueOf(orig[i][j]); String tab = ""; for (int k = 1; k <= 7 - entry.length(); k++) { tab = tab + " "; } output_ele.append(output_ele + entry + tab); } output_ele.append(output_ele + "\n"); } }</pre>
String.valueOf
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)