It would be useful to add a length() method to the ArrayBuilder interface, that provides a count of the number of elements added so far. I was going through my code, trying to replace uses of classes like java.io.ByteArrayOutputStream with the new ByteArray.Builder class and found I needed the size() method that these other classes provide. --Tyler