public void setString(int index, String val) {
    """
	Set the ArrayChar values from the characters in the String. Rank must be 2.
	This treats the ArrayChar as a 1D array of Strings.
	If String val longer than ArrayChar, ignore extra chars; if shorter, fill with 0.
	<p/>
	<p><code>
	String[] val = new String[n];
	ArrayChar ca;
	Index ima = ca.getIndex();
	for (int i=0; i<n; i++)
	ca.setString(i, val[i]);
	</code>
	
	@param index index into 1D String array, must be < getShape(0).
	@param val   set chars from this sString
    """
    int rank = getRank();
    if (rank != 2)
      throw new IllegalArgumentException("ArrayChar.setString rank must be 2");

    Index ima = getIndex();
    setString(ima.set(index), val);
  }
public void setString(int index, String val) {
    int rank = getRank();
    if (rank != 2)
      throw new IllegalArgumentException("ArrayChar.setString rank must be 2");

    Index ima = getIndex();
    setString(ima.set(index), val);
  }
public void setString ( int index , String val ) { int rank = getRank ( ) ; if ( rank != 2 ) throw new IllegalArgumentException ( "ArrayChar.setString rank must be 2" ) ; Index ima = getIndex ( ) ; setString ( ima . set ( index ) , val ) ; }
Set the ArrayChar values from the characters in the String. Rank must be 2.
This treats the ArrayChar as a 1D array of Strings.
If String val longer than ArrayChar, ignore extra chars; if shorter, fill with 0.
<p/>
<p><code>
String[] val = new String[n];
ArrayChar ca;
Index ima = ca.getIndex();
for (int i=0; i<n; i++)
ca.setString(i, val[i]);
</code>

@param index index into 1D String array, must be < getShape(0).
@param val   set chars from this sString
Set the ArrayChar values from the characters in the String . Rank must be 2 . This treats the ArrayChar as a 1D array of Strings . If String val longer than ArrayChar ignore extra chars ; if shorter fill with 0 . <p / > <p > <code > String [] val = new String [ n ] ; ArrayChar ca ; Index ima = ca . getIndex () ; for ( int i = 0 ; i<n ; i ++ ) ca . setString ( i val [ i ] ) ; < / code >