I'm reading a text file line by line and converting it into a string.
I'm trying to figure out how to check if the last line of the file is a specific word ("FILTER")
.
I've tried to use the endsWith(String)
method of String class but it's not detecting the word when it appears.