I agree, I think you would need to use a loop.... but here are some really bad alternatives, just for fun:
// Could probably be improved with some
Pattern matching, and could
// definitely be improved with fewer (ideally 1) invocation of
// Arrays.toString().... but what fun would that be?
((Arrays.toString(bb).indexOf(" 0,") < 0) &&
(Arrays.toString(bb).indexOf("[0,") < 0) &&
(Arrays.toString(bb).indexOf(" 0]") < 0) &&
(!Arrays.toString(bb).equals("[0]"))
// Have to clone only if you want to maintain the original ordering
Arrays.sort(bb.clone()).binarySearch((byte)0)
// hrmmm.... I bet this is looping internally anyway...
Arrays.aslist(bb).contains((byte)0)
Alright, enough foolishness. Good luck,
-- Jon