question: private static int labelEnd ( String s ) { int colonIndex = s . indexOf ( ":" ) ; int semicolonIndex = s . indexOf ( ";" ) ; if ( ( semicolonIndex == - 1 ) || ( colonIndex < semicolonIndex ) ) { return colonIndex ; } else { return - 1 ; } }
target:  Determines the position in the String where a label that might be contained ends