What will be the output of the following code?(2) string s="malayalam" System.out.println(s.indexOf('a')); System.out.println(s.lastIndexOf('a'));
Answers
Answered by
2
Explanation:
index of a=1
and last index of a=7
hope it will benefit you buddy...
and please follow me
Answered by
2
Answer:
hope it will help you!....
Attachments:
Similar questions