I want to display array elements in the "jTextArea1".My 2D array is not a completely filled one.it is like this. row_count = 4 and column_count =5.
2D array:
4 8 8 4 5
2 7 5 6
6 4 1 8
9 5 5 2
for(int r=0;r<row_count;r++)
{
for(int c=0;c<column_count;c++)
{
jTextArea1.setText(Integer.toString(newArray[r][c]));
}
System.out.println("\n\n");
}
Out put of the above code was just zero. what is the error of this code? thanks.
#
0