but how do i make a loop to go through 2x2 portions of my array of array?
Type: Posts; User: choloboy
but how do i make a loop to go through 2x2 portions of my array of array?
I am trying to work with this a two dimensional array, that represents greyscale of an image... I want to pixelate the image by averaging 2x2 blocks and replacing each value by the average of the 2x2...
help both :D
import java.util.Scanner;
public class data {
public static int setoriginal() { //prompt user to input 4 digit number
int n = 0;
int l = 0;
do {
...