public ArrayList<String> getInput() 
    {
        System.out.print("> ");                // print prompt
        String inputLine = reader.nextLine().trim().toLowerCase();

        String[] wordArray = inputLine.split(" ");  // split at spaces
        // filter out uninteresting words and put interesting words into an Array List
         
        
        // add words from array into hashset 
        ArrayList<String> words = new ArrayList<String>();
        HashSet<String> words2 = new HashSet<String>();
        String str = unintWords.getWords();
        // seperates uninteresting words and interesting words and puts into each collection.
        for(String word : wordArray) {
            if(str.contains(word)) {
            words2.add(word);
         } 
         else {
            words.add(word);
         }
       }
       return words;
    }