starsMethod method
Implementation
void starsMethod(num number) {
int i = 0;
for (; i < 5 && i < number; i++) {
active[i] = true;
}
for (; i < 5; i++) {
active[i] = false;
}
}
void starsMethod(num number) {
int i = 0;
for (; i < 5 && i < number; i++) {
active[i] = true;
}
for (; i < 5; i++) {
active[i] = false;
}
}