Computer Science, asked by vishesh1862, 8 months ago

Input a string. Write a program to search a given character in the string,​

Answers

Answered by kumaranmolpandey1235
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.

 \huge {\mathcal{\purple{g}\green{o}\pink{o}\blue{g}\purple{l}\green{e}\pink{d}}}

Similar questions