Here you can find the source of sumRow(int[][] matrix, int u)
public static double sumRow(int[][] matrix, int u)
//package com.java2s; //License from project: Apache License public class Main { public static double sumRow(int[][] matrix, int u) { double a = 0.0D; for (int m = 0; m < matrix[u].length; m++) { a += matrix[u][m];//from w ww . j av a 2 s . co m } return a; } }