Examveda
Examveda

Which of these method of class String is used to remove leading and trailing whitespaces?

A. startsWith()

B. trim()

C. Trim()

D. doTrim()

Answer: Option B


This Question Belongs to Java Program >> Strings

Join The Discussion

Related Questions on Strings