Here you can find the source of matrixModule(double[][] matrix, int module)
public static double[][] matrixModule(double[][] matrix, int module)
//package com.java2s; /*//from w ww. j av a 2 s. c o m * Universidad Nacional de Colombia - Sede Bogot? * * * Christian Rodriguez - carodriguezb@unal.edu.co * * C?digo liberado bajo licencia Creative Commons 3.0 * http://creativecommons.org/licenses/by-nc-sa/3.0/ */ public class Main { public static double[][] matrixModule(double[][] matrix, int module) { for (int x = 0; x < matrix.length; x++) { for (int y = 0; y < matrix[0].length; y++) { matrix[x][y] = matrix[x][y] % 256; } } return matrix; } }