Answers for "'using .indexOf() in jShell'"

1

using .indexOf() in jShell

>  "Hello world".indexOf('e');
java.lang.Integer res = 1

> "Hello world".indexOf('7');
java.lang.Integer res = -1
Posted by: Guest on July-25-2021

Browse Popular Code Answers by Language