Computer Science, asked by rockerpommathi, 6 months ago

Which functions would you chose to use to remove leading and trailing white spaces from a given string?​

Answers

Answered by Anonymous
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