My issue appears to begin with the method int getPixel(). I know its an issue but I don't know why its an issue. Also, I can get the print function to work. I realize part of the problem with that is that getPixel isn't working. At one point I was successfully printing out the count of white pixels and one column of the image. But now, I have undone so much I can't even get back to that point. The output I am seeking and my code so far is below. Can you help me?
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
27 | 28 | 29 | 30 | 1 | 2 | 3 |
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |