Does anyone know of a good way to find the max number in a 2D array?

Printable View

- 06-30-2010, 04:14 PMspatel14Find max number in 2D array?
Does anyone know of a good way to find the max number in a 2D array?

- 06-30-2010, 04:20 PMJosAH
- 06-30-2010, 04:21 PMspatel14
- 06-30-2010, 04:27 PMJosAH
I'm in a good mood: you show me how to find the maximum in a one dimensional array, then I show you how to find the maximum in a two dimensional array. I want you to deliver a method like this:

Code:`int findMaximum(int[] array) { // find biggest number in 'array'`

// you write this method

}

Jos