I have problems with BitArray.
The goal is to simulate a stack of 8 80 BitArrays bits, numbered 0 through 7.
I just need to have access to them by index, so I think a simple array will be enough for me.
When initializing an object, BitArrayI need to specify the number of bits it will contain, which gives me
BitArray test = new BitArray(80);
How can I make an array of this, knowing that I need to specify a length value?
I tried several things, for example
BitArray[] stack = new BitArray(80)[];
but I always get an error when trying to give it a length ...
Any thoughts?
Thanks in advance
source
share