Example Array foo data
Complete the method code below so that the method will sum up the values of the even-numbered columns (including 0) of the array parameter foo as shaded in the table above.
The number of rows and columns are unknown and can be inferred from from the array itself. The last column may or may not be an even-numbered column. Make sure to account for this in your method.
Return the sum of those cells from the method.
You may only use two loops inside the method.
You do not need to write a complete program, but make sure that your method is complete and would compile if used inside a complete program.
Starter Code (copy and paste into answer box, use Courier New font, and then fill in relevant code)
* method Name : sumArray
* Parameters : int array foo
* Task : sum even columns in matrix
* Return : the summation of all even columns
public static int sumArray ( int foo  )