Computer Applications

Which of these methods of class String is used to extract a single character from a String object?

  1. CHARAT( )
  2. chatat( )
  3. charAt( )
  4. ChatAt( )

Java String Handling

7 Likes

Answer

charAt( )

Reason — charAt( ) returns the character at the given index in a String object.

Answered By

4 Likes


Related Questions