3) Write a Java method (header given below) that does this:
1) open the file named fileName, read each line of the file
2) build a list of words from the file that end with the character 's'
and have > 4 letters
3) return the list built in Step 2; make sure the length of the list is exactly the number of
elements found in Step 2
For example, if the input file contains
cats
gross
cataracts
stinky
socks
your method will return an array of Strings with 3 elements, "gross", "cataracts",
and "socks". 20 points
String [] getWords (String fileName) throws Exception {