Computer Science, asked by aditya122045, 9 months ago

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 navnathblp
2

Explanation:

index of a=1

and last index of a=7

hope it will benefit you buddy...

and please follow me

Answered by kausmita2020
2

Answer:

hope it will help you!....

Attachments:
Similar questions