public static ArrayChar makeFromString ( String s , int max ) { ArrayChar result = new ArrayChar . D1 ( max ) ; for ( int i = 0 ; i < max && i < s . length ( ) ; i ++ ) result . setChar ( i , s . charAt ( i ) ) ; return result ; }
Create an ArrayChar from a String