"sentence" on line 65 is a
String. String does not have a readLine() method. Because your sentence is, in reality, one very long String containing multiple sentences, you could use the same approach that you used in your wordCount() method. The split() method takes a regular expression as an argument and you want to split on any one of three characters you'll need a regex of "[?!.]". The square brackets enclose a character set which is '?', '!', and '.'. You need the brackets because two of those characters are normally treated as control characters in regular expressions, which we don't want to do.
Also, a subtle issue with your wordCount() split: the regex should be " +" in order to treat multiple adjacent spaces as a single delimiter.
And lastly, on line 27 where you are pasting lines together you are not leaving any space between the lines, so the last
word ot the previous line will butt up against the fist word of the new line which will then be counted as a single word later.