Reference

Class

RiString

Name

replaceWord

Description Replaces the word at 'wordIdx' with 'newWord'
Syntax
replaceWord(wordIdx, newWord);
Parameters
intthe index
Stringthe replacement
Returns
RiStringthis RiString
Example
myRiString = new RiString("He ate the apple."); 
myRiString.replaceWord(0,"She");
// returns -> She ate the apple.
Platform Java / Javascript