Input a string. Write a program to search a given character in the string,
Answers
Answered by
2
The Java String charAt(int index) method returns the character at the specified index in a string. The index value that we pass in this method should be between 0 and (length of string-1). For example: s. charAt(0) would return the first character of the string represented by instance s.
Similar questions