Discussion Forum : Searching And Modifying A String
Question -

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

Options:
A .  startsWith()
B .  trim()
C .  Trim()
D .  doTrim()
Answer: Option B

None.


Was this answer helpful ?
Next Question
Submit Your Solution hear:

Your email address will not be published. Required fields are marked *