### Question:
CharArrayCharacterSource implements CharacterSource { @Override public void skipWhiteSpace() { index = CharScanner.skipWhiteSpace( chars, index ); } 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 skipWhiteSpace() { String testString = "a b c"; source = new CharArrayCharacterSource ( testString ); boolean ok = source.nextChar() == 'a' || die("" + (char)source.currentChar()); source.skipWhiteSpace(); ok &= source.nextChar() == 'b' || die("" + (char)source.currentChar()); source.skipWhiteSpace(); ok &= source.nextChar() == 'c' || die("" + (char)source.currentChar()); source.skipWhiteSpace(); }