modThree: three evens or three odds in a row?

Given an array of ints, return true if it contains either 3 even or 3 odd values all next to each other. Step through modThree: a small helper method, isEven, keeps the long condition readable. Each pass looks at a window of three neighbours.