DEV Community

Francisco Maria Calisto
Francisco Maria Calisto

Posted on

Finding the maximum integer value contained in a matrix using Java

To find the maximum integer value in a matrix I try to code some of that:

/*
 * @param ints
 * @return the max value in the array of chars
 */

public static int maxMatrix(int [][] ints) {
    int max = ints[0][0];

    for(int i = 0; i < ints.length; i++)

Top comments (0)