endsWith()

Tests whether or not a String ends with the characters of another String. myString.endsWith(myString2)
myString: a variable of type String. myString2: another variable of type String. true: if myString ends with the characters of myString2. false: otherwise.