question: private static int findSeparator ( String s ) { int result = s . indexOf ( '-' ) ; if ( result == - 1 ) { result = s . indexOf ( ',' ) ; } if ( result == - 1 ) { result = s . indexOf ( ' ' ) ; } if ( result == - 1 ) { result = s . indexOf ( '.' ) ; } return result ; }
target:  Finds the first occurrence of '-', or if that character is not found, the first occurrence of ',', or the first occurrence of ' ' or '.'