public static String [ ] toStringArrayTrim ( Array array ) throws PageException { String [ ] arr = new String [ array . size ( ) ] ; for ( int i = 0 ; i < arr . length ; i ++ ) { arr [ i ] = Caster . toString ( array . get ( i + 1 , "" ) ) . trim ( ) ; } return arr ; }
cast a Object Array to a String Array and trim all values