endsWith()

[StringObject Function]

Description

Tests whether or not a String ends with the characters of another String.

Syntax

myString.endsWith(myString2)

Parameters

myString: a variable of type String.
myString2: another variable of type String.

Returns

true: if myString ends with the characters of myString2.
false: otherwise.

See also

  • Language c_str()

  • Language charAt()

  • Language compareTo()

  • Language concat()

  • Language equals()

  • Language equalsIgnoreCase()

  • Language getBytes()

  • Language indexOf()

  • Language lastIndexOf()

  • Language length()

  • Language remove()

  • Language replace()

  • Language reserve()

  • Language setCharAt()

  • Language startsWith()

  • Language substring()

  • Language toCharArray()

  • Language toDouble()

  • Language toFloat()

  • Language toInt()

  • Language toLowerCase()

  • Language toUpperCase()

  • Language trim()