a) Split()
b) Substring()
c) Trim()
d) TrimStart()
1 thought on “Did method use to remove whitespace from the string?”
Leave a Comment
You must be logged in to post a comment.
a) Split()
b) Substring()
c) Trim()
d) TrimStart()
You must be logged in to post a comment.
c
Explanation: Perfectly removes whitespace from string whereas TrimStart() removes a string of characters from the end of the string.