My Code so far is below....
int [][] out = readGrayscaleImage("robbie_robot.jpg"); for (int x = 0; x < out.length; x++) { System.out.println(); for (int y = 0; y < out[0].length; y++) { System.out.print(out[x][y]); System.out.print(", "); } } with the output being:
255, 255, 255, 255, 255, 254, 255, 255, 255, 255, 255, 255, 255, 255, 156, 156, 255, 255, 255, 255, 255, 254, 244, 0, 88, 88, 0, 244, 255, 255, 255, 255, 255, 208, 39, 39, 184, 255, 255, 255, 254, 255, 254, 197, 40, 36, 197, 255, 255, 255, but i need it to look like this...
{255, 255, 255, 255, 255, 254, 255, 255, 255, 255}, {255, 255, 255, 255, 156, 156, 255, 255, 255, 255}, {255, 254, 244, 0, 88, 88, 0, 244, 255, 255}. {255, 255, 255, 208, 39, 39, 184, 255, 255, 255}, {254, 255, 254, 197, 40, 36, 197, 255, 255, 255} how do i fix this ??
%4d.