private static boolean processIntList ( CharIter iter , char sep , List < Integer > dest ) { while ( iter . hasNext ( ) ) { char c = iter . curr ( ) ; if ( isDigit ( c ) ) { int r = processUnsignedInt ( iter ) ; if ( r < 0 ) return false ; iter . nextIf ( sep ) ; dest . add ( r ) ; } else { return true ; } } // ran off end return false ; }
Process a list of unsigned integers .