Advertisements
Advertisements
Question
What will be the output of the following code?
String s = "malayalam";
System.out.println(s.indexOf('m'));
System.out.println(s.lastlndexOf('m'));
Short Answer
Solution
0
8
shaalaa.com
Is there an error in this question or solution?