### Question:
CharArrayCharacterSource implements CharacterSource { public char[] readNumber( ) { char [] results = CharScanner.readNumber( chars, index); index += results.length; return results; } CharArrayCharacterSource( char[] chars );  CharArrayCharacterSource( String string ); @Override final int nextChar(); final int safeNextChar(); @Override final char[] findNextChar( final int match, final int esc ); @Override boolean hadEscape(); char[] readNumber(  ); @Override final int currentChar(); @Override final boolean hasChar(); @Override final boolean consumeIfMatch( char[] match ); @Override final int location(); @Override void skipWhiteSpace(); @Override String errorDetails( String message );  }### Answer:
@Test public void readNumberTest() { String testString = "123"; source = new CharArrayCharacterSource ( testString ); char [] numberChars = source.readNumber(); boolean ok = Chr.equals ( "123".toCharArray (), numberChars ) || die( new String(numberChars) ) ; }