I solved the puzzle but I had a piece of code that wasn't working. I ended up using an if-else statement butI wanted to use a ternary operator. But it wasn't working saying that (number % 2 == 0) is not a statement.
for (int i = 0; i < intArray.size(); i++)
       {
           int number = intArray.get(i);

           if (number % 2 == 0)
           {
               evenCount++;
           }
           else
           {
               oddCount++;
           }
           // (number % 2 == 0) ? evenCount++ : oddCount++;  // doesn't work for some reason;
       }
is there something I'm missing? Thanks in advance.