cdm/src/main/java/ucar/ma2/ArrayChar.java
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;
  }
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

@param s String
@param max maximum length
@return equivilent ArrayChar