This submission uses Java to count the size of the social network for the word "LISTY" In order to run the program, make sure that the appropriate dictionary.txt file is in the same directory as ApartmentList.java. First, compile by typing:
<path to ApartmentList.java> javac ApartmentList.java
Then run the program by typing:
<path to ApartmentList.java> java ApartmentList LISTY
Note that this can find the social network size for words other than "LISTY". To do this, replace "LISTY" in the above code snippet with the word of your choosing. This can also ben ran through an IDE of your choice (such as Dr. Java). The dictionary.txt files have also been provided for convenience.