Hey SO
for (int i = TrueProbDie; i < 100; i++) {
assert(i>=0);
probs[i] = 1;
}
Im getting an ArrayIndexOutOfBoundsException on this code, due to i becoming negative, this I can solve by editing my other code, what getting me is that its ever making it to the
probs[i] = 1;
line as should throw an error on
assert(i>=0);
, if im writing this correctly , im relatively new to asserts, so im assuming I am making a newbie mistake of some kind, i just cant track it down.
many thanks ^_^