A.
|
String str = "She sells sea shells on the sea-shore";
int i;
i = str.SecondIndexOf("s");
|
B.
|
String str = "She sells sea shells on the sea-shore";
int i, j;
i = str.FirstIndexOf("s");
j = str.IndexOf("s", i + 1);
|
C.
|
String str = "She sells sea shells on the sea-shore";
int i, j;
i = str.IndexOf("s");
j = str.IndexOf("s", i + 1);
|
D.
|
String str = "She sells sea shells on the sea-shore";
int i, j;
i = str.LastIndexOf("s");
j = str.IndexOf("s", i - 1);
|
E.
|
String str = "She sells sea shells on the sea-shore";
int i, j;
i = str.IndexOf("S");
j = str.IndexOf("s", i);
|
Answer: Option C
Explanation:
|