Step 3 - Name method and select Return value

Top  Previous  Next

Now we think about the point of the selected code. In this case, it is to set i to point to the position of the last delimiter in sourceStr. This seems like i should be the return value of a function named positionOfLastDelimiter, so we customize the screen as shown here:

 

lastWordStep3