Code example for StringCharacterIterator

Methods: getBeginIndex

0
 
        StringCharacterIterator it = new StringCharacterIterator("testing", 2,
                6, 4); 
        assertEquals("Wrong current char", 'i', it.current());
        it.next();
        it.next();
        assertEquals("Doesn't return DONE", StringCharacterIterator.DONE, 
                it.current());  
        it.next();  
        assertEquals("Doesn't return DONE after next()", 
                StringCharacterIterator.DONE, 
                it.current());         
    } 
 
    /** 
     * @tests java.text.StringCharacterIterator.first() 
     */ 
    @TestTargetNew( 
        level = TestLevel.COMPLETE, 
        notes = "", 
        method = "first",