A

Admin • 830.13K Points
Coach

Q. Which method changes only the first occurrence of a character?

  • (A) replaceFirst()
  • (B) replace()
  • (C) subString()
  • (D) trim()

Explanation by: Admin
replaceFirst() replaces the first occurrence of a matching character or pattern.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.