Methods of class String

Method : charAt()


Method : indexOf()

Method : substring()




Method : trim()

Note: trim() will not remove space with in a string.
Method : replace()

Method : length()

length of a string is always = lastIndex+1
Methods : startsWith() and endsWith()


Method Chaining


Last updated
Was this helpful?