PDA

View Full Version : is it possible in java to initialize all elements of a boolean array to...


Dre D
10-11-2007, 10:19 AM
...true in one statement? boolean[] array = new boolean[5];
initializes all elements to false. Is it possible to initialize them all to true?
what if the index is like 1000?