Okay, we've got a winner!
By casting totalVotes (or whatever the divisor will be) as double, and/or adding '*1.0' in the divisor, it fixed the problem:
percent[j] = (votes[j] / (double) totalVotes);
percent[j] = (votes[j] / (totalVotes*1.0));
However, for others reading this, please note that...