This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.io.File; | |
| import java.sql.SQLOutput; | |
| import java.util.ArrayList; | |
| import java.util.Collections; | |
| import java.util.Scanner; | |
| /** | |
| * Scans through a .txt file and extracts words that can be split into two sub-words | |
| * Creates an ArrayList of all possible SubWords and prints them in the console | |
| * Also creates an ArrayList of all possible Sub3Words -- which are words that can be split |