/** * Populates the {@link MLChar} with the {@link String} value. * @param value the String value */ public void set(String value) { char[] cha = value.toCharArray(); for ( int i = 0; i < getN() && i < value.length(); i++ ) { setChar(cha[i], i); } }
/** * Populates the {@link MLChar} with the {@link String} value. * @param value the String value */ public void set(String value) { char[] cha = value.toCharArray(); for (int i = 0; i < getN() && i < value.length(); i++) { setChar(cha[i], i); } }
/** * Populates the {@link MLChar} with the {@link String} value. * @param value the String value */ public void set(String value) { char[] cha = value.toCharArray(); for ( int i = 0; i < getN() && i < value.length(); i++ ) { setChar(cha[i], i); } }
/** * Populates the {@link MLChar} with the {@link String} value. * @param value the String value */ public void set(String value) { char[] cha = value.toCharArray(); for (int i = 0; i < getN() && i < value.length(); i++) { setChar(cha[i], i); } }
/** * Populates the {@link MLChar} with the {@link String} value. * @param value the String value */ public void set(String value) { char[] cha = value.toCharArray(); for ( int i = 0; i < getN() && i < value.length(); i++ ) { setChar(cha[i], i); } }
/** * Set one row, specifying the row. * * @param value value * @param idx index */ public void set(String value, int idx) { int rowOffset = getM(); for ( int i = 0; i < getN(); i++ ) { if ( i < value.length()) { setChar( value.charAt(i), idx + (rowOffset * i)); } else { setChar(' ', idx + (rowOffset * i)); } } }
/** * Set one row, specifying the row. * * @param value * @param idx */ public void set(String value, int idx) { int rowOffset = getM(); for ( int i = 0; i < getN(); i++ ) { if ( i < value.length()) { setChar( value.charAt(i), idx + (rowOffset * i)); } else { setChar(' ', idx + (rowOffset * i)); } } }
/** * Set one row, specifying the row. * * @param value * @param idx */ public void set(String value, int idx) { char[] cha = value.toCharArray(); int rowOffset = getM(); for ( int i = 0; i < getN(); i++ ) { if ( i < value.length()) { setChar(cha[i], idx + (rowOffset * i)); } else { setChar(' ', idx + (rowOffset * i)); } } }
mlchar.setChar(str.charAt(i), i);
mlchar.setChar(str.charAt(i), i);
mlchar.setChar( str.charAt(i), i );
mlchar.setChar( str.charAt(i), i );
char[] ac = tag.readToCharArray(); for (int i = 0; i < ac.length; i++) { mlchar.setChar(ac[i], i);