Computer Science, asked by prealpha6721, 11 months ago

What is the difference of indexOf and last IndexOf method?

Answers

Answered by Ashwini26
4

The only basic difference between them is that indexOf returns the first index number of occurance of a given character in a String. While in the case of lastIndexOf the last index where a given character occurs in a String is returned.......

Similar questions