Multiple choice

If we want to convert all the characters in a String object into a character array, we use the _________ method.

  1. toCharArray()

  2. regionMatches()

  3. trim()

  4. replace()

  5. endWith()

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

If we want to convert all the characters in a string object into a character array, we use the method toCharArray().