SyntaxFix
Write A Post
Hire A Developer
Questions
In Java 8+, you can create an IntStream in the range of 0 to myArray.length and check that all values are true in the corresponding (primitive) array with something like,
IntStream
0
myArray.length
true
return IntStream.range(0, myArray.length).allMatch(i -> myArray[i]);