question: public static void write ( OutStream out , List records ) throws IOException { for ( Iterator enumerator = records . iterator ( ) ; enumerator . hasNext ( ) ; ) { ButtonRecord2 rec = ( ButtonRecord2 ) enumerator . next ( ) ; rec . write ( out ) ; } out . writeUI8 ( 0 ) ; }
target:  Write a button record array