Basically, I want to check each value of dice.
If the value is ranges between 1 and 6, inclusive, then I want to such value into the array count.
The problem is that dice is an object, not a primitive, which I declared earlier thus the >= operator does not work.
public int[] getValueCount() {
int[] count;
for (int i = 0; i < dice.length; ++i) {
if ((dice[i] >= 0) && (dice[i] <= 6)) {
count[i] = dice[i];
}
}
return count;
}