Trouble appending a boolean array
in
Programming Questions
•
1 year ago
When I want to append an array of ints, it is easy:
Why is this? and can I avoid it without going to an ArrayList?
- int [] ballsFalling = new int[0];
void draw(){
ballsFalling = append(ballsFalling,5);
}
- boolean [] ballsFalling = new boolean[0];
void draw(){
ballsFalling = append(ballsFalling,true);
}
Why is this? and can I avoid it without going to an ArrayList?
1