public void findString(String word, String filename) throws IOException{// used to find how many times a word appears and in what line in the list int count = 0; try (LineNumberReader ln = new LineNumberReader(new FileReader(filename))) {// uses linenumberreader to find the words String line; while ((line = ln.readLine()) != null) {// while the line is not equal to null for (String element : line.split(” “)) {// splits apart the different strings found in the list in order to tbe able to compare them later if (element.equalsIgnoreCase(word)) {// it compares strings to find the selected one count++; jTextPane1.setText(jTextPane1.getText() + “Word found at line ” + ln.getLineNumber() + “”);// prints where the word is found } } } jTextPane1.setText(jTextPane1.getText() + “In total, the word was found ” + count + ” times” + “”);// prints how many times the word was found } jTextPane1.setText(jTextPane1.getText() + “——-” + “”);// acts as a divider so the user can clearly see where the text ends } public static void fileSort(String filename) throws Exception {//sorts the file alphabetically FileReader fr = new FileReader(filename); BufferedReader br = new BufferedReader(fr); String inputLine; List