Skip to main content

String

Information

Class of string objects, such as "abc" (and in JS 'abc' works as well) 

Parent

Object

Variables and Functions

NameTypeInfo
toLowerCase()StringReturns a copy of this string, but with all characters in upper case
toUpperCase()StringReturns a copy of this string, but with all characters in lower case
equalsIgnoseCase(String other)booleanHash code of this object. It is used to optimize maps and other things, should never be used for object equality.
length()intNumber of characters
charAt(int index)charSingle character at index