title: sum one column of a 2D array in java
body: <p>I'm trying to make a program that will sum one column of a 2d array in java.</p>
  
  <p>Me code so far is</p>
  
  <pre><code> import java.util.Scanner;
   public class Excersiseone {
  
  public static void main(String[] args){
  
      Scanner input = new Scanner (System.in);
  
      double [][] array = new double [3][4];
  
      System.out.println("Enter a 3-by-4 matrix row by row :");
      for (int row = 0; row &lt; array.length;row++){
      for (int coloumn = 0; coloumn &lt; array[coloumn].length;coloumn++){
      array[row][coloumn] = input.nextDouble();
      //sumColumn(array,0);
      }
      }
  
  
  }
  
  
   public static double sumColoumn(double[][] m  , coloumnIndex){
  int sum = 0;
  for(int j = 0; j &lt;m[coloumnIndex].length; j++){
          sum += m[j][coloumnIndex];
  
      }
  
  system.out.println(sum);
   }
  
  
  
   }
  </code></pre>
  
  <p>I get this error when I compile</p>
  
  <p>C:\Users\DELL\Desktop\update\Excersiseone.java:22: error:  expected
  double sumColoumn(double[][] m  , coloumnIndex){</p>
  
  <p>What am I doing wrong?</p>