I want to display an array in a text view, but it is not working. Please help me. Thanks.
I want to be the output looks this way...
example i will input 1,2,3,4,5 then..
output:
1
2
3
4
5
Here's my code:
String []values = ( input.getText().toString().split(","));
int[] convertedValues = new int[values.length];
for(int x=0;x<convertedValues.length;x++){
convertedValues[x] = Integer.parseInt(values[x]);
jLabel7.setText(Integer.toString(convertedValues[x]));
}
int[] convertedValues? And also share the error message you get.