Which functions would you chose to use to remove leading and trailing white spaces from a given string?
Answers
Answered by
2
Answer:
here's ur answer dude
Explanation:
Simply use trim(). It only eliminate the start and end excess white spaces of a string. Since Java 11 String class has strip() method which is used to returns a string whose value is this string, with all leading and trailing white space removed.
hope it helps
Similar questions
Math,
3 months ago
Business Studies,
3 months ago
Math,
3 months ago
English,
6 months ago
English,
6 months ago
Math,
11 months ago
Computer Science,
11 months ago
English,
11 months ago