Share via


String.trim

Class Overview | Class Members | This Package | All Packages

Syntax

public String trim()

Returns

this string, with white space removed from the front and end.

Description

Removes white space from both ends of this string.

All characters that have codes less than or equal to '\u0020' (the space character) are considered to be white space.