Categories

String methods

Description

toLowerCase()

It is a function that turns all string characters to lowercase.

toUpperCase()

It turns all string characters in this to uppercase.

trim()

removes all whitespace from the string.

compareTo()

It is a function that compares one object to another.