I am trying to get the highest value in my rows. I have been at this awhile trying to figure it out. I assume it is suppose to return 3 values but honestly i really suck at this. Here is what I have
public static int getHighestInRow(int[][] numbers, int row)
{
int highestRow = numbers[0][0];
for (int col = 0; col < numbers[row].length; col++)
{
if (numbers[row][col] >= highestRow)
highestRow = numbers[row][col];
}
return highestRow;
}
If you need to see the rest of my code let me know i will gladly show it.