Loading...
Processing Forum
Recent Topics
All Forums
Screen name:
grhabyt
grhabyt's Profile
1
Posts
1
Responses
0
Followers
Activity Trend
Last 30 days
Last 30 days
Date Interval
From Date :
To Date :
Go
Loading Chart...
Posts
Responses
PM
Show:
All
Discussions
Questions
Expanded view
List view
Private Message
Trouble appending a boolean array
[4 Replies]
04-Jun-2012 02:09 PM
Forum:
Programming Questions
When I want to append an array of ints, it is easy:
int [] ballsFalling = new int[0];
void draw(){
ballsFalling = append(ballsFalling,5);
}
But when I try to do the same thing (in a new sketch) with an array of booleans:
boolean [] ballsFalling = new boolean[0];
void draw(){
ballsFalling = append(ballsFalling,true);
}
I get an error: "cannot convert from Object to boolean[]"
Why is this? and can I avoid it without going to an ArrayList?
«Prev
Next »
Moderate user : grhabyt
Forum