
How to Use Java String Class trim() Method
Function Description Java String class trim() method is used to remove the white space from the beginning and end of the string. If String does not have any leading or trailing whitespaces it does not do anything and return the same string. For example: If the string value is ” test “. It has leading…