+ 2

Return the index (position) of the first occurrence of "e" in the following string:

String txt = "Hello Everybody"; System.out.println(txt._______(___));

19th Apr 2019, 7:19 AM
Hershewajue
Hershewajue - avatar
2 Answers
+ 2
Thanks. I later got the code to be System.out.println(txt.indexOf("e"));
19th Apr 2019, 7:45 AM
Hershewajue
Hershewajue - avatar
+ 4
I suggest you to review the chapter if this was a quiz in the lesson. You can also consult the comments in the lesson, many people explain subjects in comments, you can express your doubts too.
19th Apr 2019, 7:42 AM
Ipang