Question: QUESTION 10 What do the following Java statements do to String variable text text text. substring (0, text. indexor O Replaces the substring word byhello
QUESTION 10 What do the following Java statements do to String variable text text text. substring (0, text. indexor O Replaces the substring word" by"hello" O Doesn't change anything O Removes every substring 'world" O Removes the first substring "wonld t("worldm/ext.substring (cext., Andexof ("world") world". 1ength 0)2 cext.substh
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
