Array with boolean with no specified size

I need an array from type boolean with no specified size at the beginning. In this case I usually use ArrayList, but it doesn't work for boolean type...

This works:

ArrayList<String> thisArray = new ArrayList<String>();

And this doesn't:

ArrayList<boolean> thisArray = new ArrayList<boolean>();

Can someone help? Thanks!

Answers

Sign In or Register to comment.