I don’t know if I am clear with this, but I already have the minimum and maximum printout, but I can’t figure out how to tell the exact rows and columns in which they are located. this is what I still have;
double max = m[0][0];
double min = m[0][0];
System.out.println("The matrix is : ");
for(int i = 0; i < m.length; i++)
{
for ( int j = 0; j < m[i].length; j++ )
{
System.out.printf(" " + "%6.1f " , m[i][j]);
if (m[i][j] > max)
max = m [i][j];
else if
(m[i][j] < min)
min = m [i][j];
How can I make an expression about my places? for example: ("Maximum number in row 1, column 2"), something like this ... I would really appreciate any help.
source
share