public static java . util . Collection < ? > values ( Struct sct ) { ArrayList < Object > arr = new ArrayList < Object > ( ) ; // Key[] keys = sct.keys(); Iterator < Object > it = sct . valueIterator ( ) ; while ( it . hasNext ( ) ) { arr . add ( it . next ( ) ) ; } return arr ; }
create a value return value out of a struct