+ 1
Given the following declaration
char c1 = 'c'; char c2 = '#; String s1 = "Computer Science", s2 = "ment"; int position = 3; What is the output of the s1.indexOf(s2.substring(1,3),8)?
3 Respuestas
+ 1
I did it for you but you have to understand why output is 12. https://code.sololearn.com/cnb1gYTFOY5U/?ref=app
+ 2
Did you run it yourself...?
+ 1
12
But what is your doubt.. Mention it clearly..
For only output, check in playground..
Otherwise It gets deleted by Mods..