0
Tel me a java code for this qusestion->Suppose my name is yogesh & if i write csyogeshbs then java should only count yogesh ...
Tel me a java code for this question ....... Suppose my name is yogesh & if i write SSyogeshSS then java should not count SS______SS but only count yogesh and accept it ......
4 ответов
+ 2
String str = "SsyogeshSs";
int n = str.indexOf("yogesh"); // 2
+ 1
Because the word start on position 2
0
why it is giving 2 output?
0
okkk fine